GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — fix: enforce RFC 2183/7578 compliance for quoted Content-Disposition parameters by mcollina · Pull Request #194 · fastify/busboy Conversation
Member
Summary
Test plan
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…parameters Properly parse Content-Disposition filename parameters by stopping at the closing quote instead of continuing to parse characters after it. This fixes the security issue where filename="payload.jpg".html was incorrectly parsed as payload.jpg.html instead of payload.jpg. The fix ensures that quoted parameter values are correctly terminated at their closing quotes, preventing potential security vulnerabilities from malformed Content-Disposition headers.
|
There was an error while loading. Please reload this page.
|
I do believe our current implementation is the correct interpretation of RFC. From the example, |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@climba03003 I'm checking this PR again, and I think the RFC822 doesn't apply here. The RFC 822 example is email address syntax, not HTTP parameter parsing, so it doesn’t apply here. Per RFC 9110 §5.6.6 / RFC 6266 §4.1, a Keeping |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Lgtm as well
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.