Backdoored PHP Obfuscator Adds URL Reporting and File-Upload Capability

· Original article ↗

Summary

A SANS researcher found a PHP obfuscator that adds page-URL reporting and an `mrz`-triggered file-upload backdoor. A logged request uploaded an older PHP webshell; no attempt to access it had been observed.

Key points

  • The obfuscator at obfuscator[.]tools added code to an otherwise simple PHP snippet using a base64/gzip wrapper.
  • The added code sends the full page URL to hxxps://siyahi[.]top/ghost/.
  • A GET request containing the `mrz` parameter triggers a fetch of a supplied remote file URL and saves its content as `mrz.php`.
  • A logged request to the upload feature resulted in an older PHP webshell being uploaded to the server.
  • The researcher reported no attempt to access the uploaded webshell; the observed upload request came from an IP address identified as a known VPN endpoint.
  • The C2 website appeared to be a compromised construction company site, though its boilerplate details may have been a decoy.

Article Details

Attack Vectors
  • The obfuscator website adds PHP code that sends the current page URL to a remote collection endpoint.
  • A request using the `mrz` parameter and a supplied `file` URL triggers retrieval of remote content and saves it as `mrz.php`.
  • An observed request used this feature to upload an older PHP webshell to a server.
Defensive Notes
  • Inspect code produced by web-based PHP obfuscators for added network requests and file-writing behavior.
  • Monitor for requests containing the `mrz` parameter and for unexpected creation of `mrz.php`.
  • Review outbound requests to the reported collection endpoint.

Indicators of compromise

TypeIndicatorContext
DOMAINobfuscator[.]toolsWebsite reported to add backdoor functionality to obfuscated PHP code.
IPV454[.]38[.]58[.]236Source IP reported for the request that uploaded the webshell; described as a known VPN endpoint.
URLhxxps[:]//siyahi[.]top/ghost/Collection endpoint receiving the current page URL from the backdoored PHP code; reported as C2 infrastructure.

MITRE ATT&CK

People

Industries