Skip to content
Info disclosure Disclosed report Beginner

[Not just a server configuration issue] Full Path Disclosure

A WordPress plugin ships a unit-test PHP file that, when requested directly, reveals the server's full filesystem path. An attacker who already has a foothold elsewhere on the same server could use that path to symlink into the site's files.

ahsan Follow

Originally disclosed on HackerOne

  • Disclosed after 30 days

Hey, I've just found a 'full path disclosure' in basic-google-maps-placemarks, so it's not just a server configuration issue! I've tested it on different servers (including windows, ubuntu, CentOS etc..)

#PoC So, if we visit wp-content/plugins/basic-google-maps-placemarks/unit-tests.php it is clearly disclosing the full path as you can see in the following links:

And eventually, in my localhost too:

2016-07-25_00h04_51.png
2016-07-25_00h04_51.png From the original on HackerOne

Well, not all websites using basic-google-maps-placemarks, have a server configuration issue, so it's probably an issue in your plugin! :-)

###Impact: Well, the possible impact is that if attacker gets into the server using other website, he might symlink and also get access to the site using that full path!

Request: Still if you are not going to fix this, please close as informativer

Cheers, Ahsan

The original report as published on HackerOne, by ahsan. 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 leftover unit-test script in the plugin that outputs filesystem paths when accessed directly, rather than being excluded from the distributed package.

Impact

The disclosure alone only reveals a path; the reporter suggests an attacker who already has access to another site on the same server might use it to symlink and reach this site's files.

What the attacker needed

Plugin installed and reachable; no authentication needed

The fix

The plugin should not ship the unit-test file, or should block direct access to it, so paths are not printed.

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.

Web servers keep files in folders, and the full path is the complete address of a file on that machine, such as where the website lives on disk. This plugin included a test file that prints that address to anyone who opens it in a browser. Knowing the address helps an attacker who is already on the same server find and link to the site's files.

What is Info disclosure?

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

More by ahsan

View all

24 more disclosed reports, best first.

More from Ian Dunn

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.