Fuckyouwaf - Apt27 new chapter
A campaign is probing shops in China and Europe with requests that abuse a PbootCMS template-injection feature to write and run a PHP webshell, then pull a second-stage trojan. The attacker could run code on the server and use the host as a command-and-control client.
Published on infosecwriteups.com
Finally after url decoding ,we have an url and a file http://150291.com/shell/4045.zip
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a PbootCMS template-injection flaw that evaluates attacker-supplied template expressions, letting the request call PHP functions such as file_put_contents and include.
Impact
The attackers could execute code on the shop server and run a trojan that connects to their command-and-control server; the text notes the first webshell version may not have worked and the trojan shows no activity in a sandbox without its C2 argument.
What the attacker needed
Target runs vulnerable PbootCMS; server can reach attacker host; WAF bypass via comment splitting
How it was found
- Send a request containing a PbootCMS template expression that rebuilds the file_put_contents function name from concatenated letters.
- The expression writes a base64-encoded PHP file into the runtime directory.
- The same request includes that written file, which downloads a remote archive and runs it as a webshell.
- The webshell receives commands and later a bash script downloads and executes a Go trojan with a command-and-control address as an argument.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
A web application firewall (WAF) is a filter that blocks suspicious requests. Here the attackers split words like file_put_contents into pieces with junk comments between them so the filter does not recognise the dangerous function, and the CMS then rebuilds and runs it. The result is a webshell, a small script that lets the attacker run commands on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.