Skip to content
Info disclosure Disclosed report Intermediate

OS username disclosure

The webkitdirectory feature in Brave did not properly sanitise the selected folder path, allowing a malicious page to read the operating system username from the path. An attacker could obtain the victim's OS username with minor user interaction.

qab Follow

Originally disclosed on HackerOne

  • Triaged in 15 days
  • Fixed in 15 days
  • Paid in 15 days
  • Disclosed after 3 months

Summary:

Using the webkitdirectory alongside minor user interaction, we are able to grab OS username of a victim. This is because the webkitdirectory object is not properly sanitized after a folder has been picked. In my case, the downloads folder was the default folder to select and so I ended up with 'Abdulrahman/Downloads'

Products affected:

Brave: 0.18.14 rev: ad92d029e184c4cff01b2e9f4916725ba675e3c8 Muon: 4.3.6 libchromiumcontent: 60.0.3112.78 V8: 6.0.286.44 Node.js: 7.9.0 Update Channel: dev OS Platform: Microsoft Windows OS Release: 10.0.14393 OS Architecture: x64

Steps To Reproduce:

Open attached PoC and hold 'enter' for a bit.

The original report as published on HackerOne, by qab. 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 webkitdirectory object was not properly sanitised after a folder was picked, exposing the full path including the OS username.

Impact

An attacker could learn the victim's OS username, which may aid further attacks, but the report does not claim more than username disclosure.

What the attacker needed

Victim uses Brave browser; victim interacts with a malicious page

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.

When you pick a folder on a website, the browser normally hides the full path for privacy. Here, the browser accidentally showed the folder path, which included the computer user's name. A malicious website could trick someone into picking a folder and then learn their username.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by qab

View all

5 more disclosed reports, best first.

More from Brave Software

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.