My web server automatically generates some specific malicious .php file [duplicate]

I have found many curious PHP files on my hosting server. Those files are generated automatically with a specific name. I have researched all files; It may be some shell. Also, I have found some exciting PHP mailer scripts.
I have removed … Continue reading My web server automatically generates some specific malicious .php file [duplicate]

Are there any attack vectors against the Smarty-PHP template engine when using a trusted template?

This is actually a general question about template engines.
If I use Smarty-PHP to generate a website, and the templates and content are both created by me (assumed non-malicious), does this create any attack vectors against my site?
My we… Continue reading Are there any attack vectors against the Smarty-PHP template engine when using a trusted template?

Server Side Template Injection (SSTI): Difference between plaintext context and code context?

I am learning pentesting, currently studying Server Side Template Injection. I understood there are two types of SSTI – plaintext context and code context – but struggle to understand what exactly is the practical difference between them.
Continue reading Server Side Template Injection (SSTI): Difference between plaintext context and code context?