Back to overview

Data validation & encoding k

Due a failure of server-side input or output validation, encoding or sanitization, malicious code can be injected and treated as code rather than data, leading to code execution in the server application.

NB: This relates to actual exploitation of an injection vulnerability on the server-side. See VE Q for the same attack client-side, and other cards in this suit for individual data validation and encoding issues (e.g. missing/by-passable/badly-implemented input/output validation, encoding or sanitization).

How to play?

Gabe can inject data into an server-side interpreter (e.g. SQL, OS commands, Xpath, Server JavaScript, SMTP) because a strongly typed parameterised interface is not being used or has not been implemented correctly


Owasp ASVS (4.0): 5.2.1 ,5.2.2 ,5.3.4 ,5.3.7-5.3.10

Capec: 23 ,28 ,76 ,152 ,160 ,261

Owasp SCP: 15,19,20,21,22,167,180,204,211,212

Owasp Appsensor: CIE1,CIE2

Safecode: 2,19,20

ASVS (4.0) Cheatsheetseries Index

ASVS V5.2 - Sanitization and Sandboxing Requirements

ASVS V5.3 - Output encoding and Injection Prevention Requirements


SQL Injection

Cross-Site Scripting (XSS)

Command Injection

Loading comments 0%

Github logo View source on GitHub

Provided by dotNET lab

This website is created, hosted and provided by dotNET lab. dotNET lab provides training and guidance on secure software development. Contact us to get in touch!

OWASP Cornucopia

OWASP Cornucopia is originally created by Colin Watson. It is open source and can be downloaded free of charge from the OWASP website. It is is free to use. It is licensed under the Creative Commons Attribution-ShareAlike 3.0 license, so you can copy, distribute and transmit the work, and you can adapt it, and use it commercially, but all provided that you attribute the work and if you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one. OWASP does not endorse or recommend commercial products or services. OWASP Cornucopia is licensed under the Creative Commons Attribution-ShareAlike 3.0 license and is © 2012-2016 OWASP Foundation.