Build an HTTP Proxy to Abuse SSRF [HackTheBox - Response] @0xdf
Build an HTTP Proxy to Abuse SSRF [HackTheBox - Response]  @0xdf
Uploaded February 2023 | Updated November 2026, 3 hours ago
In Response from HackTheBox, there's a point where I have to abuse an API endpoint to get SSRF into the inner network that I can't access directly. I'll write a Python Flask application that works as a HTTP proxy so that these requests work while Firefox doesn't know it's working through the SSRF.

Response Writeup: 0xdf.gitlab.io/2023/02/04/htb-response.html#access-to-chat-as-guest
☕ Buy Me A Coffee: buymeacoffee.com/0xdf

[00:00] Introduction
[01:10] Overview of different sites
[02:35] Digests
[03:46] Getting digest by abusing cookie
[05:15] Proxy strategy
[06:20] Structural diagram
[08:26] Creating basic Flask application
[09:30] Creating default route
[11:09] Code to hit /fetch
[14:30] get_digest function
[17:30] Setting up Burp to forward to proxy
[18:16] Testing, catching a couple errors, starting to work
[20:30] Decoding responses, proxy works for most GETs
[22:35] Adding mimetype for CSS, JS
[27:35] Adding support for POST
[33:29] Logging in, chatting, things are working
[34:00] Summary
Build an HTTP Proxy to Abuse SSRF [HackTheBox - Response]Chronospatial Computer [Day 17 - Advent of Code 2024 - Python]LFI into RCE Abusing NGINX Temp Files [PikaTwoo - HackTheBox]Day 13: Point of Incidence [AOC2023 Python]Day 12: Hot Springs [AOC2023 Python]Day 4 - Security Through Obscurity [Revival of Code 2023 - Advent of Code 2016]Day 2: Cube Conundrum [AOC2023 Python]Day 15 - Timing is Everything [Revival of Code 2023 - Advent of Code 2016]Chrome Local Overrides [Snowball Showdown - Sans Holiday Hack 2024]Day 18: Lavaduct Lagoon [AOC2023 Python]Directory Traversal / File Read Into Zip with Python [HackTheBox Snoopy]Triple Knock [HackTheBox - Coding Challenge]
0xdf |

Build an HTTP Proxy to Abuse SSRF [HackTheBox - Response]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER