Coppermine Photo Gallery <= 1.4.18 Path Disclosure Weakness
A theme file in Coppermine Photo Gallery could be requested directly, and doing so produced an error message that disclosed the installation path. An attacker could use that path information to learn about the server's filesystem layout.
karmainsecurity.com
Published on karmainsecurity.com
themes/sample/theme.php in Coppermine Photo Gallery (CPG) 1.4.18 and earlier allows remote attackers to obtain sensitive information via a direct request, which reveals the installation path in an error message.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the theme file was not designed to be requested directly and lacked a guard, so it produced an error that included the full installation path.
Impact
An attacker could learn the server's installation path, which may help in planning further attacks; the text does not claim anything beyond information disclosure.
What the attacker needed
No authentication needed; attacker can send HTTP requests
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 write-up has not been written yet. The Original tab links to the source.
Some web pages are meant to be loaded only as part of a larger site, not opened on their own. If you request such a file directly, the software may crash and print an error that includes the folder path where the site is installed. That path is useful to an attacker because it tells them how the server is laid out.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.