Skip to content
Info disclosure Disclosed report Beginner

Full Path Disclosure on [smarthistory.khanacademy.org]

A WordPress plugin file on the site triggered a PHP error that revealed the full server path and the user account the site runs under. An attacker could use that path information when chaining with another vulnerability that needs it.

gsalazar Follow

Originally disclosed on HackerOne

  • Fixed in 3 hours
  • Disclosed after 4 days

Hello, I have found a full path disclosure on a website that runs a wordpress installation. There isn't much to explain about this bug, as it's pretty self explanatory. What an attack can do with this bug is identify the full path, and the user the site is running under. If the attacker finds a vulnerability where he needs the full path, he can grab it from there.

Here's the proof of concept - http://smarthistory.khanacademy.org/blog/wp-content/plugins/podpress/getid3/write.php

To mitigate this vulnerability, either fix the syntax error, or remove the file if it is not necessary anymore after evaluation.

Thank you.

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

Root cause

Likely a syntax error in a plugin file caused PHP to print an error that included the full filesystem path and the running user.

Impact

An attacker could learn the server's full path and the user the site runs under, which may help when exploiting another vulnerability that requires that information.

What the attacker needed

None

The fix

The syntax error should be fixed, or the unnecessary file should be removed.

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 website is made of files stored on a server, and normally visitors should not see where those files live. Here, a broken file in a WordPress plugin showed an error message that included the server's folder path and the name of the account running the site. That is useful to an attacker because some other attacks need to know those details.

What is Info disclosure?

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

More by gsalazar

View all

1 more disclosed report, best first.

More from Khan Academy

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.