Skip to content

Adds CodeQL query to check for insecure RequestValidationMode in ASP.NET #5

@cldrn

Description

@cldrn

Report

ASP.NET applications ship with requestValidationMode enabled by default as it consists of built-in validations to protect against code injections. It is not recommended to set it to other value different than 4.5 as doing so will disable some or all protections for HTTP requests. This check belongs to the category CWE-016 which didn't exist previously in QL and corresponds to common insecure configurations.

This issue is still commonly found in ASP.NET applications and CVEs caused by this usually get labeled as code injection vulnerabilities:

CodeQL query PR: github/codeql#2356

Metadata

Metadata

Labels

All For OneSubmissions to the All for One, One for All bountyLowBounty entry rated as LowPR mergedCodeQL team just merge the contributionReviewed by the Lab 🧪GH Security Lab has rate the contribution

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions