Closed Bug 1628710 Opened 6 years ago Closed 6 years ago

RCE on - https://dps.midi.data.mozilla.org/ through exposed debugging console

Categories

(Websites :: Other, defect)

defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: griffin.francis.1993, Assigned: emrose)

References

()

Details

(Keywords: reporter-external, sec-high, wsec-authorization, Whiteboard: [reporter-external] [web-bounty-form] [verif?])

Hi All.

I have managed to find an exposed Werkzeug Debugger situated here - https://dps.midi.data.mozilla.org/console should the pin be guessed it will enable me to be able to obtain remote code execution on the webservice. I have attempted to run a low bruteforce of this pin through Burpsuite, however I have locked the console (sorry! Was trying to demonstrate rce).

As mentioned here - https://werkzeug.palletsprojects.com/en/1.0.x/debug/

Danger
The debugger allows the execution of arbitrary code which makes it a major security risk. The debugger must never be used on production machines. We cannot stress this enough. Do not enable the debugger in production.

There is also this exploit to obtain the pin - https://www.daehee.com/posts/werkzeug-console-pin-exploit/ (Which I haven't run yet)

Please let me know if there are any issues.

Flags: sec-bounty?
Severity: normal → critical

Thank you for the excellent and clear report, Griffin. I'm reaching out to determine who is responsible for this domain and will get back to you when I know what our next steps are.

A pull request has been opened against the affected site to have the console made inaccessible. I've also created a tracking bug that should be closed after the PR is.

https://bugzilla.mozilla.org/show_bug.cgi?id=1628790

Assignee: nobody → emrose
Status: UNCONFIRMED → NEW
Ever confirmed: true

Looks like we have resolved the PR to revoke access to the console and I have confirmed that it's no longer possible for me to reach it. Big thanks to mreid and cvalaas for their support on this.

Keywords: sec-high

Console appears to be not accessible now. Thanks for the quick action on this issue!

Flags: sec-bounty? → sec-bounty+
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Type: task → defect
Group: websites-security
You need to log in before you can comment on or make changes to this bug.