Security pattern / case archive

Template-to-Command Execution

A server-side template injection reaches a callable operating-system primitive and returns dynamic command output.

Common discovery signals
  • A template-callable function runs a harmless operating-system command with a predictable result.
  • The response contains command-generated output that was absent from the stored template source.
Safe validation approach

Use a harmless command with a predictable result, avoid shells or persistence, limit any file check to the authorized objective, and stop once the impact is confirmed.

Related classifications

Related entries

Archive connections

Connected case files

01 record
CASE-007WEBVERSE
Connected evidence

Nolic

Authenticated Smarty SSTI to OS Command Execution

A public backup exposed an administrator SHA-256 digest. After recovering the password offline, I reproduced the Smarty SSTI and operating-system command execution in Caido and from the terminal. The original draft was restored after every test.