Skip to content

Commit 434cc89

Browse files
authored
Merge pull request swisskyrepo#857 from HackingRepo/patch-6
Add Bypass using localhost TLD
2 parents c142771 + 12e5d82 commit 434cc89

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

Server Side Request Forgery/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* [Bypass Abusing URL Parsing Discrepancy](#bypass-abusing-url-parsing-discrepancy)
2020
* [Bypass PHP filter_var() Function](#bypass-php-filter_var-function)
2121
* [Bypass Using JAR Scheme](#bypass-using-jar-scheme)
22+
* [Bypass Using TLD localhost](#bypass-using-tld-localhost)
2223
* [Exploitation via URL Scheme](#exploitation-via-url-scheme)
2324
* [file://](#file)
2425
* [http://](#http)
@@ -292,6 +293,20 @@ In PHP 7.0.25, `filter_var()` function with the parameter `FILTER_VALIDATE_URL`
292293
?>
293294
```
294295

296+
### Bypass Using TLD localhost
297+
298+
There was a reserved tld called `.localhost`, it can accept arbiratry domains and resolves to the localhost ip, here is an example
299+
300+
```powershell
301+
$ ping PayloadsAllTheThings.localhost -c 1
302+
PING PayloadsAllTheThings.localhost (::1) 56 data bytes
303+
64 bytes from ip6-localhost (::1): icmp_seq=1 ttl=64 time=0.070 ms
304+
305+
--- PayloadsAllTheThings.localhost ping statistics ---
306+
1 packets transmitted, 1 received, 0% packet loss, time 0ms
307+
rtt min/avg/max/mdev = 0.070/0.070/0.070/0.000 ms
308+
```
309+
295310
### Bypass Using JAR Scheme
296311

297312
This attack technique is fully blind, you won't see the result.

0 commit comments

Comments
 (0)