Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions Server Side Request Forgery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* [Bypass Abusing URL Parsing Discrepancy](#bypass-abusing-url-parsing-discrepancy)
* [Bypass PHP filter_var() Function](#bypass-php-filter_var-function)
* [Bypass Using JAR Scheme](#bypass-using-jar-scheme)
* [Bypass Using TLD localhost](#bypass-using-tld-localhost)
* [Exploitation via URL Scheme](#exploitation-via-url-scheme)
* [file://](#file)
* [http://](#http)
Expand Down Expand Up @@ -292,6 +293,20 @@ In PHP 7.0.25, `filter_var()` function with the parameter `FILTER_VALIDATE_URL`
?>
```

### Bypass Using TLD localhost

There was a reserved tld called `.localhost`, it can accept arbiratry domains and resolves to the localhost ip, here is an example

```powershell
$ ping PayloadsAllTheThings.localhost -c 1
PING PayloadsAllTheThings.localhost (::1) 56 data bytes
64 bytes from ip6-localhost (::1): icmp_seq=1 ttl=64 time=0.070 ms

--- PayloadsAllTheThings.localhost ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.070/0.070/0.070/0.000 ms
```

### Bypass Using JAR Scheme

This attack technique is fully blind, you won't see the result.
Expand Down
Loading