mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2026-07-28 14:47:32 -07:00
Merge pull request #857 from HackingRepo/patch-6
Add Bypass using localhost TLD
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
* [Bypass Abusing URL Parsing Discrepancy](#bypass-abusing-url-parsing-discrepancy)
|
* [Bypass Abusing URL Parsing Discrepancy](#bypass-abusing-url-parsing-discrepancy)
|
||||||
* [Bypass PHP filter_var() Function](#bypass-php-filter_var-function)
|
* [Bypass PHP filter_var() Function](#bypass-php-filter_var-function)
|
||||||
* [Bypass Using JAR Scheme](#bypass-using-jar-scheme)
|
* [Bypass Using JAR Scheme](#bypass-using-jar-scheme)
|
||||||
|
* [Bypass Using TLD localhost](#bypass-using-tld-localhost)
|
||||||
* [Exploitation via URL Scheme](#exploitation-via-url-scheme)
|
* [Exploitation via URL Scheme](#exploitation-via-url-scheme)
|
||||||
* [file://](#file)
|
* [file://](#file)
|
||||||
* [http://](#http)
|
* [http://](#http)
|
||||||
@@ -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
|
### Bypass Using JAR Scheme
|
||||||
|
|
||||||
This attack technique is fully blind, you won't see the result.
|
This attack technique is fully blind, you won't see the result.
|
||||||
|
|||||||
Reference in New Issue
Block a user