[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.
- 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:
- http://jazzalajmi.com/espace-pro/wp-content/plugins/basic-google-maps-placemarks/unit-tests.php
- http://ywamnorthwoods.org/setapart/wp-content/plugins/basic-google-maps-placemarks/unit-tests.php
- http://www.t1fx.com/teamt1fx/wp-content/plugins/basic-google-maps-placemarks/unit-tests.php
- http://www.processinstruments.net/wp-content/plugins/basic-google-maps-placemarks/unit-tests.php
- http://faas-bh.com/001/03udruzene/wp-content/plugins/basic-google-maps-placemarks/unit-tests.php
- http://www.dominihost.com.br/1line/wp-content/plugins/basic-google-maps-placemarks/unit-tests.php
- http://www.dominihost.com.br/1line/wp-content/plugins/basic-google-maps-placemarks/unit-tests.php
And eventually, in my localhost too:

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
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.