Illegal Rendered at Download Feature in Firefox Lite for Android that Lead to Extension Manipulation (with RTLO)
Firefox Lite for Android did not strip the right-to-left override character from downloaded filenames, so a file named with that character could be displayed with a misleading extension. An attacker could make an APK appear to be a JPG, and when the user opened it the APK would be installed.
- Fixed in 19 months
- Paid in 3 months
- Disclosed after 19 months
Created attachment 9160089
regedtgpj.apk
Summary:
I have found a vulnerability of RTLO download feature in Firefox Lite for Android
Step to Reproduce:
1. Change the filename to: malicious<RTLO_Char><fake_ext>.<real_ext>
For example: regedt<RTLO>jpg.apk
2. When the browser download feature fails to to parse the character perfectly, the filename will be changed to regedtgpj.apk
Impact:
the user will download the .apk file but the file will be saved as jpg. Again, when user wants to open the downloaded file, the file will be executed as .apk and trying to install the program (original format).
systeminfo:
Firefox Lite 2.1.17
WebView version:55.0.2883.91
OS Android HUAWEI
The Reference:
1. opera Mini for Android(CVE-2019–18624): http://www.firstsight.me/2019/10/illegal-rendered-at-download-feature-in-several-apps-including-opera-mini-that-lead-to-extension-manipulation-with-rtlo/
2. Zero-day vulnerability in Telegram:https://securelist.com/zero-day-vulnerability-in-telegram/83800/
3. hackerone RTL override symbol not stripped from file names https://hackerone.com/reports/298
4. the rtlo info : https://blog.malwarebytes.com/cybercrime/2014/01/the-rtlo-method/
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 download feature did not strip or neutralise the right-to-left override character before displaying the filename.
Impact
The user could download an APK that appears to be a JPG, and opening it would execute the APK and attempt to install the program.
What the attacker needed
Victim downloads a crafted file; victim opens the downloaded file; Android device
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 right-to-left override is an invisible text character that makes the rest of a filename display in reverse order. If a browser does not remove it, a file called something like picture.jpg.apk can look like picture.jpg on screen. The user then opens what they think is an image but actually installs an Android app.
What is File upload?
An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.