Unintended Require in larvitbase-api
High severity
GitHub Reviewed
Published
Sep 11, 2019
to the GitHub Advisory Database
•
Updated Sep 11, 2023
Description
Reviewed
Sep 4, 2019
Published to the GitHub Advisory Database
Sep 11, 2019
Last updated
Sep 11, 2023
Versions of
larvitbase-api
prior to 0.5.4 are vulnerable to an Unintended Require. The package exposes an API endpoint and passes a GET parameter unsanitized to anrequire()
call. This allows attackers to execute any.js
file in the same folder as the server is running.Recommendation
Upgrade to version 0.5.4 or later.
References