3 ms·
Can someone explain how the "hello world" prefixing example works? I assume it has to do with converting a base64 encoded string to a different charset then ba
by rwmj 2y ago
Can someone explain how the "hello world" prefixing example works? I assume it has to do with converting a base64 encoded string to a different charset then base64 decoding but I don't understand how that would get extra characters.
- gwillem 2y agoSome encodings add a prefix, which then get sanitised by the liberal base64_decode. https://www.synacktiv.com/en/publications/php-filters-chain-what-is-it-and-how-to-use-it https://www.synacktiv.com/en/publications/php-filters-chain-...
- ec109685 2y agoExplained here nicely: https://github.com/DownUnderCTF/Challenges_2022_Public/blob/main/web/minimal-php/solve/solution.py https://github.com/DownUnderCTF/Challenges_2022_Public/blob/...