Sensitive Data Exposure in a Moodle Config File
A backup copy of a Moodle configuration file was publicly accessible, exposing database credentials and other sensitive details. An attacker could use these credentials to access the database and potentially compromise the application.
link of my personal gitbook => https://mrci0x1.github.io/
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 a backup file of the configuration was left in the web root and was not removed or protected.
Impact
The exposed credentials could allow an attacker to access the database and potentially compromise the application.
What the attacker needed
The backup file must be publicly accessible
The fix
The file was removed, as the report states the issue was resolved.
How it was found
- Enumerate subdomains of the target domain.
- Check which subdomains are live.
- Perform directory fuzzing on the live subdomain.
- Access the discovered config.php.save file to view its contents.
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.
A configuration file holds secret settings like database passwords. A backup copy of this file was left on the web server where anyone could download it. This gave attackers the keys to the database, which could lead to data theft or further attacks.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.