Layer 4Jul – Aug 2026

Security audit of a legacy PHP system

From about 45,000 PHP filesApprox. with no documentation to the exact lines of code behind the attack.

ReconstructedFor confidentiality, no real code, logs, URLs or details that could identify the business are shown. Everything visualised in this layer is reconstructed data.

A booking and customer-management system that had been running for 10+ yearsApprox. (tens of thousands ofApprox. members; about 45,000 PHP filesApprox., over 40 GBApprox.). I audited it in about 3 weeksApprox..

Response

  • Neutralised the planted files as an emergency measure — existing files untouched, each one verified through its HTTP response
  • Preserved evidence with SHA-256 hashes
  • Inferred the attack technique from differences in response sizes in the access logs, and traced it to the responsible lines of code
  • Headed off the risk of a site-wide Safe Browsing warning before it happened

Main risks found

  • Uploads with no file-extension check
  • Authentication that relied on cookies
  • SQL injection
  • Passwords stored in plain text

Report and remediation plan

  • A report for a non-technical owner that keeps confirmed facts and inferences clearly apart
  • A remediation plan in 4 stagesVerified, ordered by urgency, with effort estimates