HTTP MitM on Flash Player settings manager allows attacker to set sandbox settings
The Flash Player settings manager, although served over HTTPS, could be manipulated by an attacker who controls HTTP traffic to set or edit the local settings cookie. This allowed the attacker to grant permanent webcam/microphone access, exempt domains from CORS restrictions, and disable auto-updates.
Originally disclosed on HackerOne
- Fixed in 9 months
- Paid in 9 months
- Disclosed after 3.7 years
This vulnerability is present in both Google Chrome's PepperFlash aswell as browsers with the NPAPI Flash Player versions.
It works by MITM'ing the Flashplayer settings manager. Although this settings manager is served over HTTPS, it is still possible to place or edit the local settings cookie by serving it over HTTP over the corresponding path.
This leads to the attacker being able to edit several sandbox settings, for example, the attacker can: -Give the domain/payload permanent access to webcam/microphone, -Permanently exempt the domain/payload from any CORS Policy restrictions -Effectively disable auto updates (NPAPI versions) by setting the auto-update interval to ~9999 days
For this, an attacker would only need access to the HTTP communication of the victims network. Either embedding the remote SWF in the attackers own site, or injecting the embed code in other HTTP traffic from the victim.
The POC was peformed against Google Chrome 41.0.2272.101 (PPAPI 17.0.0.134) on Windows 8.1 MITMProxy (https://mitmproxy.org/) was used to serve the altered SWF (Without using HTTPS/Certificate modes).
This attack is demonstrated in this video: https://www.youtube.com/watch?v=2Q52q_kZtTc (unlisted)
This issue is reported to Adobe, I am currently awaiting a response from their PSIRT.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the Flash Player settings manager did not properly enforce HTTPS for the settings cookie, allowing an HTTP response to set or overwrite it.
Impact
An attacker with access to the victim's HTTP traffic could permanently grant webcam/microphone access, bypass CORS restrictions, and disable auto-updates for a domain.
What the attacker needed
Access to victim's HTTP traffic; victim loads attacker's SWF
How it was found
- Intercept the victim's HTTP traffic using a man-in-the-middle tool.
- Serve a malicious SWF file over HTTP that sets or edits the Flash Player settings cookie.
- The victim loads the SWF, either by visiting the attacker's site or via injected embed code in HTTP traffic.
- The altered settings take effect, granting the attacker's domain permanent permissions.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Flash Player stored some security settings in a local cookie. The settings manager page was supposed to be secure (HTTPS), but an attacker who can intercept network traffic could trick the browser into accepting a fake settings cookie over plain HTTP. This let the attacker change important security settings, like giving a website permanent access to the camera or microphone.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.