Skip to content
File upload Write-up Beginner

CVE-2019–18624 – Illegal Rendered at Download Feature in Several Apps (including Opera Mini) that Lead to Extension Manipulation (with RTLO)

Opera Mini's download feature failed to properly render the Unicode right-to-left override character in filenames, allowing an attacker to manipulate the displayed file extension. A victim could download a file that appears to be a harmless .png or .txt but is actually an .apk that Android executes as an installable application.

YoKo Kho Follow

Published on firstsight.me

Bug Report / Mobile Apps / Write-Up

YoKo Kho (@YokoAcc), on firstsight.me

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the download feature did not properly sanitise or neutralise the Unicode right-to-left override character when constructing the saved filename, causing the displayed extension to be reversed.

Impact

An attacker could trick a victim into installing a malicious Android application by disguising it as a harmless file, potentially leading to malware installation.

What the attacker needed

Victim uses vulnerable Opera Mini; victim downloads attacker-provided file; victim opens the downloaded file

The fix

The issue was fixed in Opera Mini version 47.

How it was found

  1. Attacker creates a file with a malicious extension (e.g., .apk) and names it using the RTLO character to make it appear as a harmless extension (e.g., .png).
  2. Victim downloads the file using the vulnerable browser's download feature.
  3. The browser saves the file with the manipulated name, showing the fake extension.
  4. When the victim opens the file, the operating system executes it according to its real extension, potentially installing malware.

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 write-up has not been written yet. The Original tab links to the source.

Some characters in text are used to display words from right to left, like Arabic. A special invisible character can reverse the order of characters after it. If a browser does not handle this character correctly when saving a downloaded file, the file's name can be shown with a fake extension, so a dangerous file looks safe.

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 by YoKo Kho

View all

15 more disclosed reports, best first.

More from Opera

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.