Skip to content
Info disclosure Disclosed report Beginner

FULL PATH DISCLOSUR

A malformed session cookie caused the application to emit a PHP warning that revealed the server's full filesystem path to the webroot. An attacker could use that path to support other attacks, such as a SQL injection load_file() call that needs an absolute path.

benamarouche Follow

Originally disclosed on HackerOne

  • Triaged in 34 hours
  • Fixed in 35 hours
  • Disclosed after 36 hours

Full Path Disclosure (FPD) vulnerabilities enable the attacker to see the path to the webroot/file. e.g.: /home/omg/htdocs/file/. Certain vulnerabilities, such as using the load_file() (within a SQL Injection) query to view the page source, require the attacker to have the full path to the file they wish to view.

url: http://enterprise.concrete5.com/

How to fix this vulnerability Review the source code for this script.

How to replicate: Cookie input CONCRETE5 was set to Error message found: <b>Warning</b>: session_start() [<a href='function.session-start'>function.session-start</a>]: The session id is too long or contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in <b>/home/enterpri/public_html/updates/concrete5.6.1.2_updater/concrete/startup/session.php</b> on line <b>36</b><br />

as we can see clearly the full path

Affected params : / /index.php /tools/required/captcha

Attachments

coockies.png
coockies.png From the original on HackerOne

The original report as published on HackerOne, by benamarouche. 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

Impact

The full server path to the webroot is disclosed, which could help an attacker in other attacks that need an absolute path.

What the attacker needed

Ability to send a crafted cookie

The fix

Review the script's source code to address the path disclosure.

How it was found

  1. Send a request to the site with the CONCRETE5 cookie set to an invalid value.
  2. Observe the PHP warning in the response.
  3. Read the full filesystem path disclosed in the warning.

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 a web server hits an error it sometimes prints a detailed message. Here that message included the folder location of the site's files on the server, which is normally hidden. Knowing that location helps an attacker in follow-up attacks that need a full file path.

What is Info disclosure?

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

More from Concrete CMS

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.