Skip to content
Info disclosure Disclosed report Beginner

Full directory path listing

Adding a single quote to the PHPSESSID cookie value caused the application to return a full directory path in its response. An attacker could use this path disclosure to learn the server's filesystem layout.

test_this Follow

Originally disclosed on HackerOne

  • Disclosed after 14 hours

STEP:

  1. goto https://bridge.cspr.ng/login and enter your username,password
  2. click "LogIn" and intercept the request
  3. change the value in cookie header and add '(single quote) in PHPSESSID field eg: PHPSESSID=kn7e21dpp2ocai2ckn1v147qev'
  4. Forward the packet and see full path is disclose
Screenshot_(9).png
Screenshot_(9).png From the original on HackerOne

The original report as published on HackerOne, by test_this. 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 application fails to handle malformed session identifiers safely, causing an error that reveals the full filesystem path.

Impact

An attacker could learn the server's full directory path, which may help in planning further attacks.

What the attacker needed

Valid login credentials; ability to intercept HTTP requests

How it was found

  1. Go to the login page and enter username and password.
  2. Click LogIn and intercept the request.
  3. Change the PHPSESSID cookie value by adding a single quote.
  4. Forward the request and observe the full path disclosure.

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 cookie is a small piece of data your browser sends to a website to identify your session. Here, putting a single quote character into the session cookie made the site show the full folder path on the server, which is normally hidden. That kind of leak helps an attacker plan further attacks.

What is Info disclosure?

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

More by test_this

View all

4 more disclosed reports, best first.

More from Paragon Initiative Enterprises

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.