Skip to content
File upload Disclosed report Beginner

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.

superxx Follow

Originally disclosed on Mozilla

  • Fixed in 19 months
  • Paid in 3 months
  • Disclosed after 19 months
Text
Created attachment 9160089
regedt‮gpj.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 regedt‮gpj.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/

The original report as published on Mozilla's Bugzilla, by superxx. 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.

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.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Unrestricted file upload

The lesson behind this report.

An upload feature accepts a file that the server or other users' browsers then treat as code or as something trusted.