Information / sensitive data disclosure on some endpoints
Several sensitive files, including a Travis CI configuration with credentials, an htaccess file, and bash history and SSH known_hosts files, were publicly accessible on WordPress.org subdomains. An attacker could use these to gather information for further attacks, though the report notes the credentials may not be in active use.
- Triaged in 26 days
- Fixed in 2 months
- Disclosed after 11 months
Hello team! While doing a preliminary recon on *.wordpress.org I've come across a few sensitive files that should not be facing the public web; I'll leave you a list organized by criticality and some proof.
High priority
.travis.yml configuration file with credentials
php maintenance/install.php testwiki admin
--pass travis
--dbname traviswiki
--dbuser travis
--dbpass ""
--scriptpath "/w"
Medium priority
.htaccess file for munin-lax.wordpress.org
AuthUserFile /usr/local/etc/munin-htpasswd
AuthName "Munin"
AuthType Basic
require valid-user
Low priority
one .bash_history file accessible from multiple production vhosts:
http://iphone.git.wordpress.org/.bash_history
http://meta.git.wordpress.org/.bash_history
http://wordpress.git.wordpress.org/.bash_history
http://bbpress.git.wordpress.org/.bash_history
http://buddypress.git.wordpress.org/.bash_history
http://core.git.wordpress.org/.bash_history
http://android.git.wordpress.org/.bash_history
http://ios.git.wordpress.org/.bash_history
http://wordcamp.git.wordpress.org/.bash_history
http://develop.git.wordpress.org/.bash_history
http://evelop.git.wordpress.org/.bash_history
one ssh known_hosts file accessible from multiple production vhosts:
http://wordcamp.git.wordpress.org/.ssh/known_hosts
http://ios.git.wordpress.org/.ssh/known_hosts
http://android.git.wordpress.org/.ssh/known_hosts
http://core.git.wordpress.org/.ssh/known_hosts
http://buddypress.git.wordpress.org/.ssh/known_hosts
http://bbpress.git.wordpress.org/.ssh/known_hosts
http://wordpress.git.wordpress.org/.ssh/known_hosts
http://meta.git.wordpress.org/.ssh/known_hosts
http://iphone.git.wordpress.org/.ssh/known_hosts
http://develop.git.wordpress.org/.ssh/known_hosts
http://evelop.git.wordpress.org/.ssh/known_hosts
Impact
Obviously there's no critical priority here—there could've been juicer stuff in the .bash_history but there wasn't; the publicly accessible .htaccess and .travis.yml might be serious as long as those credentials are really being used somewhere (and it seems to me the DBMS isn't facing the public internet anyway). The real impact is that finding such files always grabs the attention of a threat actor, which might give up not so easily influenced by the fact that there might be "more".
(minor) bonus round: host header injection on wordpress.org
Probably informational but you might still want to look into that: wordpress.org is susceptible to "host header injection", you can read more about it here and here. Essentially, depending on your internal configuration, this flaw ranges from a self-inflicted open-redirect (wow, such threat), to password reset request hijack, to cache poisoning.
PoC for the self-inflicted open-redirect (why though):
❯ curl -v -H "Host: z.xss.ro" "https://wordpress.org/themes/search"
> GET /themes/search HTTP/2
> Host: z.xss.ro
> User-Agent: curl/7.55.1
> Accept: */*
>
< HTTP/2 301
< server: nginx
< date: Mon, 02 Oct 2017 09:12:59 GMT
< content-type: text/html
< content-length: 178
< location: https://z.xss.ro/themes/search/
< x-frame-options: SAMEORIGIN
< x-nc: MISS lax 250
<
<html>
<head><title>301 Moved Permanently</title></head>
this is also going down on plain HTTP so maybe a MitM scenario is possible in an already compromised business environment / hosting partner but then again, it's pretty low priority.
I obviously can't test the password reset scenario, you might want to test that as follows:
- go to wordpress.org and begin the procedure to reset your password
- intercept the request on Burp
- change the host header to evil.com
- send the request and check your e-mail
if the threat is real, the password reset link will be generated with evil.com instead of wordpress.org; otherwise it's all good (which should be, as this doesn't work on wordpress.com)
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, sensitive files were placed in web-accessible directories without proper access restrictions.
Impact
The exposed files could reveal credentials and system details, but the report states there was no critical data and the database was not publicly reachable; the host header issue could lead to open redirect or password reset hijacking depending on configuration.
What the attacker needed
None
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.
Some files that are normally kept private, like configuration files and command history, were left on public web servers where anyone could download them. These files can contain passwords or clues about how the servers are set up, which helps someone planning an attack. The report also mentions a separate issue where the server can be tricked into using a fake website address.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.