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

Headers are forwarded when the URL redirects to another domain and should not be (information leak) #137

Closed
JamieSlome opened this issue Feb 11, 2022 · 10 comments
Labels

Comments

@JamieSlome
Copy link

Hey there!

I belong to an open source security research community, and a member (@Sampaguitas) has found an issue, but doesn’t know the best way to disclose it.

If not a hassle, might you kindly add a SECURITY.md file with an email, or another contact method? GitHub recommends this best practice to ensure security issues are responsibly disclosed, and it would serve as a simple instruction for security researchers in the future.

Thank you for your consideration, and I look forward to hearing from you!

(cc @huntr-helper)

@FGRibreau
Copy link
Owner

Hello Jamie :)

Got the link through email, due to the low criticity of the bug, I'm open to a PR to fix it :)

@FGRibreau FGRibreau changed the title Security concern Headers are passed on redirect to another domain and should not be (information leak) Feb 15, 2022
@FGRibreau FGRibreau changed the title Headers are passed on redirect to another domain and should not be (information leak) Headers are forwarded when the URL redirects to another domain and should not be (information leak) Feb 15, 2022
@FGRibreau FGRibreau added the bug label Feb 15, 2022
@Sampaguitas
Copy link
Contributor

Sampaguitas commented Feb 15, 2022

Merci @FGRibreau :)

I'll prepare the fix and submit the PR as soon as I get back from work.

Shall I reduce the CVSS score on Huntr.dev portal?

With best regards,

Timothee

@JamieSlome
Copy link
Author

JamieSlome commented Feb 15, 2022

@FGRibreau - great 👍

@Sampaguitas / @FGRibreau - let me know if there is anything I can do to support 😄

EDIT:
Just adding the report related to this issue for reference:
https://huntr.dev/bounties/a779faf5-c2cc-48be-a31d-4ddfac357afc/

@Sampaguitas
Copy link
Contributor

Hi @FGRibreau, @JamieSlome,

The PR has been submitted :

HEAD...sampaguitas:master

I would appreciate if you could validate the finding & fix on hunter.dev:

https://huntr.dev/bounties/a779faf5-c2cc-48be-a31d-4ddfac357afc/

Have a nice day,

Timothee

@FGRibreau
Copy link
Owner

@Sampaguitas could you please open PR so I can merge it ? https://github.com/FGRibreau/node-request-retry/compare :)

Here is some help

@Sampaguitas
Copy link
Contributor

Hi @FGRibreau, I have open the PR

FGRibreau added a commit that referenced this issue Feb 21, 2022
test file (information leak) #137
@FGRibreau
Copy link
Owner

Fixed and released in v7.0.0 (since it might break things for some people)

@JamieSlome
Copy link
Author

Thanks for the support and contributions @FGRibreau @Sampaguitas!

I have confirmed the fix against the report 👍

@curtispd
Copy link

This has caused a serious regression for us, please see: #140

@Sampaguitas
Copy link
Contributor

Hi @curtispd, see response here.

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

No branches or pull requests

4 participants