by tibbar · 1mo ago · 0 comments
> What we demonstrated > Pre-authentication RCE on WordPress, Drupal and Joomla
The RCE exploit is application dependent: it requires exploitable PHP code already deployed in the server. However, that exploitable code path is widely deployed by the most popular PHP software: WP, Drupal, Joomla, etc, so in practice most PHP deployments are vulnerable to the RCE attack.
Note that use-after-free would be prevented in memory-safe languages such as Java, Go or Rust.
To be fair, C has simplicity as an attractive feature (compared to other languages) but being memory-unsafe is unacceptable, so we need either memory-safe C or stop using it.
There are also hardened malloc/free implementations for C based runtimes. Of course none of that is perfect, the famous heartbleed exploit for example bypassed any outside memory protection as the library agressively reused already allocated buffers, none of the languages you named would protect against that.
Great, so show us a working exploit.
Buy 5$ on deepseek and have it write a script to grind out the right offsets to use for the most popular docker images.
I got it working just now; shell on any docker image i pull.
GG this dumb ass blog-post and thread.
1. An attacker identifies a publicly accessible website running vulnerable PHP.
2. They send specially crafted HTTP requests to the website.
3. The requests trigger vulnerabilities in PHP's internal memory handling.
4. If exploitation succeeds, the attacker can execute arbitrary code on the server under the privileges of the affected PHP process.
Either that, or I wasn't fully awake when I wrote it.