martinpham
For days I was reading many threads saying that PHP2Shell is very hard to exploit, with no working public PoC available. Honestly, I patched my servers but had no way to verify if the patches actually worked. And ecently, reading the PoC from KillaBoi gave me the idea to make it easier to verify my servers, so I wanted to share it here with you: https://github.com/MartinPham/php2shell-poc
The exploit requires some specific information to work, like the PHP version, the binary's properties (how it was built, optimizations, etc.) and the runtime configuration. Yes, you can hide these from others, but anyone who knows the Docker image or PHP build can calculate the exact values needed to exploit your servers.
The repository contains:
- The Lab (compose.yml + lab/): a PHP/nginx setup to test against (nginx and PHP versions are not exposed to the client)
- poc.py: a single self-contained script that both calculates the needed values from a Docker image and runs the exploit against the target
I decided to make this public because others will find a way to exploit it anyway, so please patch your servers now.
Show HN: LogoQR – Generate your next QR code
I built LogoQR, a completely free tool that embeds logo or custom image directly into the QR matrix itself. Let's stop using the ugly black-and-white QR codes from now!
Show HN: SmartContract UI – open-source Blockchain's Browser
- Supporting Firestore as the data storage, with Realtime and Offline support. You can use Discuzz easily without any backend server.
- With Firebase Auth support, you can provide many ways to authenticate for your users.
- You can easily config the access control, to adjust permissions (Example: open to all people, or only authenticated users, or you can also turn on moderation mode for every comments)
- Customizable theme, with built-in light/dark theme.