Skip to content
File upload Disclosed report Beginner

RTL override symbol not stripped from file names

File names containing the Unicode right-to-left override character are not sanitised, so an uploaded executable can be displayed with a misleading harmless-looking name. This could trick users, such as HackerOne panel members, into opening a malicious file.

mathias Follow

Originally disclosed on HackerOne

  • Triaged in 4 hours
  • Fixed in 22 hours
  • Paid in 22 days
  • Disclosed after 19 months

Any U+202E RIGHT-TO-LEFT OVERRIDE (and similar) symbols in file names of uploaded files are not stripped from the file name, causing potentially malicious executables to look like harmless images, for example. This might trick HackerOne panel members into accidentally opening evil h4x0r filez.

I’ve attached two files:

  • one is named insane_in_the_cort[RLO]3pm.exe, which gets rendered as insane_in_the_cortexe.mp3, making it look like a harmless mp3 file of a well-known Cypress Hill song.
  • another is named po[RLO]gnp.app, which gets rendered as poppa.png, as if it was just a PNG image.

I’ve also attached a screenshot showing what it looks like after uploading the files.

Attachments

looks-legit.png
looks-legit.png From the original on HackerOne

The original report as published on HackerOne, by mathias. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 file upload handling does not strip or normalise Unicode bidirectional control characters from file names before displaying them.

Impact

An attacker could upload a malicious executable that appears to be a harmless image or audio file, potentially tricking a user into opening it.

What the attacker needed

Ability to upload files

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.

Some Unicode characters change the direction text is displayed, so a file called something.exe can appear as something.mp3. The upload feature does not remove these characters, so an attacker can upload a dangerous file that looks safe. A user might then open it thinking it is a harmless image or song.

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 mathias

View all

1 more disclosed report, best first.

More from HackerOne

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.