PHPs Unsafe parse_url Function [Encoding - HackTheBox] @0xdf
PHPs Unsafe parse_url Function [Encoding - HackTheBox]  @0xdf
Uploaded April 2023 | Updated November 2026, 3 hours ago
In Encoding from HackTheBox, IppSec and I got different results trying to do the same thing, and we went to explore why. It turns out that passing a URL without a scheme and // will cause parse_url to return an empty string, which causes issues when it's used as a filter.

Encoding blog post: 0xdf.gitlab.io/2023/04/15/htb-encoding.html

☕ Buy Me A Coffee: buymeacoffee.com/0xdf

[00:00] Introduction
[00:28] Showing discrepency
[02:04] Looking at page source
[03:32] Adding echo to site
[04:34] Showing in php shell
[05:28] Looking at docs
[06:10] Hardening check
PHPs Unsafe parse_url Function [Encoding - HackTheBox]ffuf Auto Calibration DemystifiedWriting a Webshell Joomla Plugin [HackTheBox - DevVortex]Laboratories [AOC2025 Day 7]NeoVault - HackTheSystem CTFPlaying with Jenkins File Read [CVE-2024-23897]Mull It Over [Day 3 - Advent of Code 2024 - Python]Uncheesable [0xff: One Last Address]Hacking PyJWT for Algorithm Confusion Attack [HackTheBox CyberMonday]Day 10: Pipe Maze [AOC2023 Python]Jumpio Adventure [HTB Stack Smash CTF]Reversal [HackTheBox - Coding Challenge]
0xdf |

PHP's Unsafe parse_url Function [Encoding - HackTheBox]

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER