Malformed POST in Developer Tools > Edit & Resend
Categories
(DevTools :: Netmonitor, defect)
Tracking
(Not tracked)
People
(Reporter: me, Unassigned)
References
Details
Attachments
(1 file)
|
1.75 MB,
application/zip
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
Steps to reproduce:
I was participating in a security CTF (Capture The Flag), and one challenge was web-exploitation.
- Send a POST request
- Edit and Resend
a. Modify the POST body - Resend the modified POST body
- Check server response
Actual results:
The payload looks something like this:
{"item":"eggs","amount":1}
via Firefox, I tried changing to:
{"item":"eggs","amount":"00"} -> Invalid body, the server failed to parse your request, please try again with a valid payload
Expected results:
via Burp's Proxy (Chromium)
Send the request and modify the POST body before forwarding to the same payload used in Firefox. This time it yields the expected results for this particular challenge, a successful response from the server, in which the "00" is appended to the item amount.
The CTF challenge is specifically a string-concatenation exploit, where you can pass amount as a string, and it gets concatenated. Sending "0", "00", or any string in Firefox yields a Invalid body error, whereas on Burp/Chromium, it properly concatenates the string.
I have attached HAR for both a successful POST (200) and fail (400). I assume the way Firefox is modifying the POST request is causing the request to be malformed.
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'DevTools::Netmonitor' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 years ago
|
||
Hi, we could not reproduce the bug on Nightly,
Can you check if this works in more recent versions of Firefox (111 to 113)?
Thanks!
Comment 3•1 year ago
|
||
A needinfo is requested from the reporter, however, the reporter is inactive on Bugzilla. Given that the bug is still UNCONFIRMED, closing the bug as incomplete.
For more information, please visit BugBot documentation.
Description
•