request / request

๐ŸŠ๐Ÿพ Simplified HTTP request client.
Apache License 2.0
25.67k stars 3.14k forks source link

Ssrf fix #3444

Closed SzymonDrosdzol closed 1 year ago

SzymonDrosdzol commented 1 year ago

PR Checklist:

PR Description

This pull request is a fix to CVE-2023-28155.

It introduces a new configuration option allowInsecureRedirects, turned off by default. The default configuration leaves library users protected from exploiting CVE-2023-28155. When the option gets turned on, the cross-protocol redirects will be allowed if library user decides it's safe and required in their case.

phawxby commented 1 year ago

@mikeal @jabrena @mmalecki @eiriksm @reconbot any possibility one of you is available to review and merge this? Our build process is currently broken because of audit failures. Thanks.

tcherel commented 1 year ago

Can we expect an updated request release with this fix soon? If yes, how soon? Sorry, just trying to figure out how fast we need to move out of request completely. Thanks.

khitrenovich commented 1 year ago

There were no non-doc/tools changes in the repo since 2018 and no commits at all for the last 3 years. I wouldn't expect any fix coming from here.

Our own dependency on request came from jsforce (which is not gonna get fixed soon, as it looks like), so we migrated to the still-maintained fork from Cypress via Yarn forced resolutions mechanism, and it worked like a charm.


Update: in case somebody missed that, request is deprecated since 2020.

danilogco commented 1 year ago

Yeah... It seems like it's not being maintained/updated anymore a long time.

tcherel commented 1 year ago

Thanks. Yes, I understand that request is not maintained any longer but since there was this PR created and it got reviewed and approved, I though that, may be, something was going to be released.

suside commented 1 year ago

@khitrenovich CVE-2023-28155 was reported on Mar 16, 2023 and the last commit in fork from Cypress is from Jan 11, 2023. It doesn't look like this has been fixed in their fork :raised_eyebrow:

khitrenovich commented 1 year ago

@khitrenovich CVE-2023-28155 was reported on Mar 16, 2023 and the last commit in fork from Cypress is from Jan 11, 2023. It doesn't look like this has been fixed in their fork ๐Ÿคจ

@suside You are right... Just opened an issue there, let's see how they respond.

phawxby commented 1 year ago

@SzymonDrosdzol it might be worth you opening the same CVE against the cypress fork too

legobeat commented 1 year ago

I have made two PRs on cypress:

It seems they have an extended test suite handling more complex redirects so if anyone feels up for extending my PRs addressing those cases to get them up to standard, feel free.

karanr1990 commented 1 year ago

is there any alternate library of sforcejs where we do not have dependency on request library ?

jeremieSTC commented 1 year ago

Can we expect an updated request release with this fix soon?

If yes, how soon?

Sorry, just trying to figure out how fast we need to move out of request completely.

Thanks.

It would be great if a new version could be released including the fix. I see there was a new version a couple of days ago with the new version of xml2js so I have hope.

legobeat commented 1 year ago

@jeremieSTC A couple of years, you mean? See above for alternatives - request itself is unmaintained and I wouldn't be hoping to see further updates.

reconbot commented 1 year ago

Per the readme and npm deprecation warning.

As of Feb 11th 2020, request is fully deprecated. No new changes are expected to land. In fact, none have landed for some time.

Please use alternative libraries.