Skip to content
Info disclosure Disclosed report Beginner

[support.wordcamp.org] - publicly accessible .svn repository

The .svn directory of a WordPress support site was publicly accessible, allowing an attacker to download repository metadata and list the application's file structure and commit usernames. The reporter could not download PHP source code because the server executed those files, but noted that a configuration change could expose the full source.

kazan71p Follow

Originally disclosed on HackerOne

Informational View original
  • Fixed in 4 days
  • Disclosed after 5 days

Hi Team,

Found that .svn repo is publicly accessible. We can verify it by loading https://support.wordcamp.org/.svn/entries in any browser. This is very dangerous as an attacker may download entire source code. More details about this vulnerability provided here:

http://www.adamgotterer.com/post/28125474053/hacking-the-svn-directory-archive

By using https://github.com/anantshri/svn-extractor we can try to download entire svn repository without any authentication and restore the source code. We can also see commit history, users that performed commits and all repository related metadata.

$ python svn-extractor.py --url "https://support.wordcamp.org/"

I wasn't able to donwload php source code, because you are using old version of SVN and server will try to execute php scripts even with svn-base extension - https://support.wordcamp.org/.svn/text-base/view-attachment.php.svn-base

But we still can get layout of remote application:

tree
.
├── ajax-predefined.php
├── ajax-quote.php
├── api.php
├── base-init.php
├── bg-left.gif
├── bin
├── config-sample.php
├── design.css
├── favicon.ico
├── font
│   ├── genericons-regular-webfont.eot
│   ├── genericons-regular-webfont.svg
│   ├── genericons-regular-webfont.ttf
│   └── genericons-regular-webfont.woff
├── footer.php
├── header.php
├── images
│   ├── 24px-white.gif
│   ├── button-grad-active.png
│   ├── button-grad.png
│   ├── icon_attachment.png
│   ├── white-grad-active.png
│   └── white-grad.png
├── includes
│   ├── class.bp-options.php
│   ├── constants.php
│   ├── crud.php
│   ├── db.php
│   ├── form.php
│   ├── mime.php
│   ├── misc.php
│   ├── plugin.php
│   ├── schema.php
│   ├── sp-stats-class.php
│   ├── support-functions.php
│   ├── upgrade.php
│   ├── viewing.php
│   ├── wp-functions.php
│   ├── wp-meta.php
│   └── wp-user.php
├── index.php
├── init.php
├── installer.php
├── js
│   ├── common.js
│   ├── jquery-1.7.2.min.js
│   ├── jquery.autosize-min.js
│   ├── jquery-fieldselection.js
│   ├── jquery-latest.js
│   └── thread.js
├── login.php
├── message-attachment.php
├── message-image.php
├── plugins
│   ├── customcss.php
│   ├── customjs.php
│   ├── fauxlders.php
│   ├── force-ssl.php
│   ├── kissmetrics.php
│   ├── sidebar-history.php
│   ├── sidebar-mods.php
│   ├── sidebar-summary.php
│   └── thread-status.php
├── predefined-edit.php
├── readme.txt
├── settings.php
├── sidebar-thread.php
├── stats.php
├── thread-addnote.php
├── thread-bulk.php
├── thread-create.php
├── thread-delete.php
├── thread-new.php
├── thread-notify.php
├── thread.php
├── thread-reply.php
├── thread-status.php
├── thread-tags.php
├── user-edit.php
├── user.php
└── view-attachment.php

And list of usernames that performed commits:

List of Usernames used to commit in svn are listed below
1 : xknown
2 : kovshenin
3 : iandunn
4 : briancolinger
5 : westi
6 : polldaddy
7 : thingalon
8 : apokalyptik
9 : josephscott
10 : johnny5
11 : eoigal
12 : lessbloat
13 : shaunandrews
14 : jkudish

The fix is very easy, add following line to .htaccess file:

RewriteRule (\.svn)/(.*?) - [F,L]

Impact

Anyone can get remote application layout, usernames involved in development. If SVN gets updated or server configuration change it is also possible to download the source code.

The original report as published on HackerOne, by kazan71p. 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 the web server was configured to serve the .svn metadata directory instead of blocking access to it.

Impact

An attacker could learn the application's file layout and the usernames of developers who committed code; full source download was blocked because the server executed PHP files, but a configuration change could expose it.

What the attacker needed

None

The fix

The .svn directory should be blocked at the web server level, for example with an .htaccess rule that forbids access.

How it was found

  1. Open the .svn/entries path in a browser to confirm the directory is exposed.
  2. Use an SVN extraction tool against the site URL to pull repository metadata.
  3. Inspect the resulting file tree and commit usernames.

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.

Websites often keep a hidden folder called .svn that stores version-control information about the site's files. If that folder is left open to the public, anyone can browse it and learn the site's file names and who worked on it. In this case the server also ran PHP files instead of showing their code, which limited the leak.

What is Info disclosure?

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

More by kazan71p

View all

6 more disclosed reports, best first.

More from WordPress

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.