Skip to content
Access control Disclosed report CVE-2013-0776

HTTPS can be effectively disabled by attackers on rogue networks using a proxy that returns 407 with embedded script

Michal Zalewski Follow

Originally disclosed on Mozilla

  • Fixed in 3 months
  • Paid in 4 months
  • Disclosed after 3 months
Text
There appears to be a relatively nasty bug in your handling of HTTPS. To reproduce, set up a TCP server on, say, localhost:1234, and have it read the HTTP request and respond with:

-- snip! --
HTTP/1.0 407 Burp
Proxy-Authenticate: basic
Connection: close
Content-Type: text/html

<html>
<h1>pwnd</h1>
<script>alert(location.href)</script>
[...some padding...]
-- snip! --

Then, configure localhost:1234 as a proxy for HTTP and HTTPS (on a rogue network, this could be done through auto-discovery).

Next, have the victim navigate to https://www.paypal.com/. A prompt will come up, but doing the most reasonable thing (dismissing it or hitting ESC) will display the HTML content returned by the proxy over plain text, executing it in the context of https://www.paypal.com/.

The original report as published on Mozilla's Bugzilla, by Michal Zalewski. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A high-severity access control bug in Networking: HTTP. Mozilla made it public on 9 January 2013 as CVE-2013-0776.

About Access control

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Michal Zalewski

View all

7 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.