Repository navigation
fix: prevent multipart part header injection - #29
Conversation
Mixed activityActivity patterns show a mix of organic and automated signals. Evidence
This is an automated analysis by AgentScan |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #29 +/- ##
==========================================
+ Coverage 98.21% 98.24% +0.02%
==========================================
Files 1 1
Lines 393 399 +6
Branches 58 64 +6
==========================================
+ Hits 386 392 +6
Misses 7 7 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Untrusted field names, filenames, and MIME types can inject multipart headers and change the field name seen by a receiving parser.
The fix encodes CR, LF, and double quotes in field names and filenames as
%0D,%0A, and%22. MIME types with CR or LF cause a synchronousTypeErrorbefore the form attaches or pipes a source stream. Other characters and part contents remain unchanged.Summary by CodeRabbit
TypeError. The form remains usable after rejection.mimeTypeargument forfield().