Back to overview

Data validation & encoding q

Due a failure of client-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 client application.

NB: This relates to actual exploitation of an injection vulnerability on the client-side. See VE K for the same attack server-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?

Geoff can inject data into a client or device side interpreter because a parameterised interface is not being used, or has not been implemented correctly, or the data has not been encoded correctly for the context, or there is no restrictive policy on code or data includes


Owasp ASVS (4.0): 5.2.1 ,5.2.5 ,5.3.3 ,5.5.4

Capec: 28 ,31 ,152 ,160 ,468

Owasp SCP: 10,15,16,19,20

Owasp Appsensor: IE1,RP3

Safecode: 2,17

ASVS (4.0) Cheatsheetseries Index

ASVS V5.2 - Sanitization and Sandboxing Requirements

ASVS V5.3 - Output encoding and Injection Prevention Requirements

ASVS V5.5 - Deserialization Prevention Requirements


SQL Injection

Cross-Site Scripting (XSS)

Command Injection

(Session) Data tampering

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.