CONCRETE5 - path disclosure.
Emptying the CONCRETE5 cookie caused PHP session warnings that revealed the server's internal file paths. An attacker could learn the installation directory and version details from these error messages.
Originally disclosed on HackerOne
- Fixed in 2 months
- Disclosed after 2 months
Hi,
When you emtpy the cookie CONCRETE5 it will throw the following error on the page :
Warning: session_start() [function.session-start]: The session id contains illegal characters, valid characters are a-z, A-Z, 0-9 and '-,' in /home/c5host/msm_versions/012312/concrete/startup/session.php on line 22 Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/c5host/msm_versions/012312/concrete/startup/session.php:22) in /home/c5host/msm_versions/012312/concrete/startup/session.php on line 22
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/c5host/msm_versions/012312/concrete/startup/session.php:22) in /home/c5host/msm_versions/012312/concrete/startup/session.php on line 22 Warning: Cannot modify header information - headers already sent by (output started at /home/c5host/msm_versions/012312/concrete/startup/session.php:22) in /home/c5host/msm_versions/012312/concrete/libraries/view.php on line 841
Best regards,
Olivier Beg
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 passed an empty or malformed session identifier to PHP's session_start() without validating it, and error display was enabled, so PHP warnings exposed the filesystem path.
Impact
The error messages could disclose the server's internal file paths and installation version to an attacker.
What the attacker needed
Ability to modify the CONCRETE5 cookie
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 a website stores in your browser. When the cookie was emptied, the site's error message showed the full folder path on the server, which is information the site should keep private.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.