Products

Solutions

Resources

Search for API Security Tests

/

/

SSTI in Twig

SSTI in Twig

Fuzzing vulnerable payloads in request body and query params to assess Server-Side Template Injection vulnerability.

Server Side Template Injection (SSTI)

"By fuzzing vulnerable payloads in request bodies and query parameters, it aims to identify and exploit Server-Side Template Injection vulnerabilities specific to Twig templates. This test assesses the risk of arbitrary code execution, data exposure, and server compromise within the Twig templating engine, ensuring comprehensive security assessment."

"By fuzzing vulnerable payloads in request bodies and query parameters, it aims to identify and exploit Server-Side Template Injection vulnerabilities specific to Twig templates. This test assesses the risk of arbitrary code execution, data exposure, and server compromise within the Twig templating engine, ensuring comprehensive security assessment."

Impact of the vulnerability

Impact of the vulnerability

Successful exploitation might compromise sensitive AWS information which attacker can use to get unauthorized access to AWS.

Successful exploitation might compromise sensitive AWS information which attacker can use to get unauthorized access to AWS.

How this template works

APIs Selection

The template uses regular expressions to extract the payload key from the request body and query parameters. It matches any key in the request payload or query parameters and extracts the key as "payloadKey" or "queryKey" respectively.

Execute request

The template modifies the query parameter and request body parameter by injecting a Twig template expression. It sets the query parameter "queryKey" to "{{89 * 91}}" and the request body parameter "payloadKey" to "{{89 * 91}}".

Validation

The template validates the response payload by checking if it contains the string "8099". If the response payload contains either "8099", the validation is considered successful.

Frequently asked questions

What is the purpose of the SSTI in Twig test

What are the potential risks associated with successful exploitation of this vulnerability

How does the test assess the risk of arbitrary code execution, data exposure, and server compromise within the Twig templating engine

What is the severity level assigned to this test

What are the categories and subcategories associated with this test

Are there any references or resources available for further understanding of this test

Loved by security teams!

Loved by security teams!

Product Hunt Badge

"We are absolutely thrilled with the testing feature of Akto. We have used it on our graphQL endpoints and it performs flawlessly identifying common API security issues. It's truly a game-changer and we highly recommend Akto to anyone looking to effortlessly secure their API endpoints. With a user-friendly interface, it's the perfect solution for anyone looking to embrace custom rules with context to reduce false positives."

Loom Company logo

Security team,

Loom

"We are absolutely thrilled with the testing feature of Akto. We have used it on our graphQL endpoints and it performs flawlessly identifying common API security issues. It's truly a game-changer and we highly recommend Akto to anyone looking to effortlessly secure their API endpoints. With a user-friendly interface, it's the perfect solution for anyone looking to embrace custom rules with context to reduce false positives."

Loom Company logo

Security team,

Loom

"The text editor in Akto is absolutely remarkable. Its user-friendly YAML format strikes the perfect balance between simplicity and power. With intuitive features like 'API selection filter', 'Execute', Validate' creating test rules becomes incredibly easy. Akto's test editor is a game-changer, enabling seamless creation of highly personalized and effective tests that could meet the needs of any modern day organization. "

Rippling Company logo

Security team,

Rippling

Suggest API security tests

Suggest API security tests

We're actively building the test library. Suggest a test! If we like your suggestion, you will see it in the library in few days.

We're actively building the test library. Suggest a test! If we like your suggestion, you will see it in the library in few days.