Skip to content
Info disclosure Write-up Beginner

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.

mrcix Follow

Published on medium.com

link of my personal gitbook => https://mrci0x1.github.io/

mrci0x1, on medium.com

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

  1. Enumerate subdomains of the target domain.
  2. Check which subdomains are live.
  3. Perform directory fuzzing on the live subdomain.
  4. 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.

More by mrcix

View all

2 more disclosed reports, best first.

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.