Skip to content
Path traversal Disclosed report Beginner

Username .. (double dot) should be restricted or handled carefully

A user could set their username to two dots, which caused the application to build a settings URL that resolved to a different path and returned a 404. The report only shows a broken page, not any access to another user's data.

sh4dow Follow

Originally disclosed on HackerOne

Informational View original
  • Disclosed after 3 hours

If I change my username to "test" then as in normal case it will send a GET request to /test/settings but if I change my username to ".." (double dot within inverted commas) then it will send GET request to /settings because /../settings will change to /settings and hence final GET request will be to /settings which will show a 404 page. I have attached a video as POC.

Regards!

Attachments

gratify.mp4 From the original on HackerOne

The original report as published on HackerOne, by sh4dow. 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 username was inserted into a URL path without being checked or encoded, so a value containing dot segments changed which path was requested.

Impact

The user's own settings page could break and return a 404; the text does not show access to other users' data or any other security impact.

What the attacker needed

A user account; ability to change the username

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 username, the site puts it into a web address, for example /yourname/settings. If the username is two dots, that address means 'go up one folder', so the browser asks for a different page. The reporter only saw an error page, not someone else's information.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from Gratipay

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.