Video player on ███ allows arbitrary remote videos to be played
A Flash video player accepted an arbitrary remote XML file via the 'url' parameter, bypassing restrictions by replacing 'http://' with '//'. An attacker could play any video, control its title and description, and set a malicious download link, all appearing to originate from the US Air Force.
- Triaged in 18 hours
- Fixed in 7 months
- Disclosed after 2.9 years
Summary: A Flash video player hosted on ███████ can be provided with an arbitrary remote XML file via the url query string parameter.
Description:
The Flash video player (http://█████/shared/widgets/popup.asp) uses the url query string parameter as an address to fetch an RSS feed type XML document that specifies a video to play, and meta data about that video.
Although some restrictions are in place to prevent the use of arbitrary URLs (e.g. a request to http://████/shared/widgets/popup.asp?url=http://█████████/rss.xml results in a 403 response code), those restrictions are bypassable by replacing http:// with // in the URL.
Impact
- An abitrary video can be played in the player, appearing as though the US Air Force is the source of that video
- The title and description of that video are controllable, again appearing as though the US Air Force is the source of that content
- The URL pointed to by the 'DOWNLOAD (WMV)' link in the lower left of the player is controllable, and as the download link is in a Flash object there is no 'hover-over' prompt telling the user where the file will be downloaded from. This could be used to trick users into downloading a malicious file under the assumption that it is provided by the US Air Force.
Step-by-step Reproduction Instructions
A web server has been configured at http://████/ to aid in a proof of concept, and a working PoC can be seen at this URL: http://███████/shared/widgets/popup.asp?url=//████/rss.xml
Note that the video is of a mobility scooter race, the title is set to 'Any title you want', the description is set to 'Any description you want' and clicking the 'DOWNLOAD (WMV)' link downloads a file called bad.bat (which is actually harmless in this case).
The webroot of the server contains the following files:
- http://██████/crossdomain.xml - a permissive crossdomain settings file
- http://█████████/rss.xml - the XML file containing the video URL and meta data
- http://████████/video.flv - the video file itself
- http://████/bad.bat - a placeholder for a malicious file
These are the only files required for an attacker to exploit this vulnerability. Copies of the crossdomain.xml and rss.xml are attached, as is a screen recording of the problem being demonstrated.
Suggested Mitigation/Remediation Actions
Without seeing the source code it's difficult to know how the url parameter is currently being checked, but the workaround's existence suggests some kind of substring checking. It's often a good idea to use a well-tested URL parsing library - which, in theory, should be immune to tricks like using // - and compare the domain of the URL to a whitelist instead.
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 URL validation used naive substring checks that could be bypassed with a protocol-relative URL ('//').
Impact
An attacker could play arbitrary videos, control their title and description, and set a malicious download link, all appearing to originate from the US Air Force, potentially tricking users into downloading malware.
What the attacker needed
Attacker-controlled web server; victim visits crafted URL
The fix
The URL parameter should be validated using a well-tested URL parsing library and the domain compared against a whitelist.
How it was found
- Set up a web server hosting a crossdomain.xml, an rss.xml with video metadata, a video file, and a malicious file.
- Craft a URL to the player with the 'url' parameter set to '//attacker/rss.xml'.
- Visit the crafted URL to see the arbitrary video and metadata displayed.
- Click the download link to download the malicious file.
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.
A web page had a video player that could load a video from any address if you tweaked the link. By changing 'http://' to '//', an attacker could make the player show their own video and fake download link, tricking users into thinking it came from the US Air Force.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.