Thumbnail npx @marp-team/marp-cli@latest --theme-set nord.css --image jpeg -o from-input-to-injection.jpg . Server npx @marp-team/marp-cli@latest --theme-set nord.css --html . HTML npx @marp-team/marp-cli@latest --theme-set nord.css --html -o 2024-08-14-from-input-to-injection.html --title 'From Input to Injection: Practical Lessons from HKIRC CTF' --description 'Casual sharing on interesting techniques we picked up from HKIRC CTF: arbitrary file reads, PHP parameter tampering, and Python format string injection. We also explore how to automate boolean SQL injection for speed and fun.' --url https://trebledj.me/slides/from-input-to-injection/ --og-image /img/slides/from-input-to-injection.jpg pres.md PDF npx @marp-team/marp-cli@latest --theme-set nord.css --html -o 2024-08-14-from-input-to-injection.pdf --pdf --allow-local-files .
Did I miss anything?
<div data-marpit-fragment> Reference: [Linux File System - `/proc`](https://tldp.org/LDP/Linux-Filesystem-Hierarchy/html/proc.html) </div>
But on a related note...
PHP types are more brittle than you think.
References: [Read Gadgets](https://book.hacktricks.xyz/generic-methodologies-and-resources/python/python-internal-read-gadgets) • [Python Format String](https://book.hacktricks.xyz/generic-methodologies-and-resources/python/bypass-python-sandboxes#sensitive-information-disclosure-payloads)
Django app!
FrappeFramework: Low code SAAS. Think of it as a CMS.
Questions!??
Who has discovered and exploited this in engagements?
- Ramble
Walkthrough SQLite Demo:
- Basic PoC
- PoC with UNICODE/SUBSTRING
- PoC with script
Share about that engagement with multiple subsidiaries.
--- ### Takeaways * Speed matters. * Enumerate both widely and deeply. * If you repeat something *a lot*, consider automating it. * Downside: (probably) no BD hours.