Skip to main content

Insecure service configuration - Request Validation

Description

No requestValidationMode is assigned in the server configuration files, which would allow XSS attacks.

Impact

Obtain sensitive information through XSS attacks.

Recommendation

Activate recommended protection mechanisms such as Request Validation.

Threat

Anonymous attacker from the Internet.

Expected Remediation Time

⌚ 60 minutes.

Score

Default score using CVSS 3.1. It may change depending on the context of the vulnerability.

Base

  • Attack vector: N
  • Attack complexity: H
  • Privileges required: N
  • User interaction: R
  • Scope: U
  • Confidentiality: L
  • Integrity: L
  • Availability: N

Temporal

  • Exploit code madurity: P
  • Remediation level: O
  • Report confidence: R

Result

  • Vector string: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:L/A:N/E:P/RL:O/RC:R
  • Score:
    • Base: 4.2
    • Temporal: 3.7
  • Severity:
    • Base: Medium
    • Temporal: Low

Code Examples

Compliant code

The requestValidationMode header is correctly configured

<system.web>
<compilation debug="true" targetFramework="4.0" />
<httpRuntime requestValidationMode="2.0" />
</system.web>

Non compliant code

The requestValidationMode is not correctly configured

<system.web>
<compilation debug="true" targetFramework="4.0" />
<httpRuntime requestValidationMode=* />
</system.web>

Requirements