Skip to main content

Recursive Fragment

Description

This is a DoS vulnerability that allows an attacker with specifically designed queries to cause stack overflow panics. Any user with access to the GraphQL handler can send these queries and cause stack overflows. This in turn could potentially compromise the ability of the server to serve data to its users.

Remediation

Implement a maximum recursion limit.

Configuration

Identifier: resource_limitation/graphql_recursive_fragment

Examples

Ignore this check

{
"checks": {
"resource_limitation/graphql_recursive_fragment": {
"skip": true
}
}
}

Score

  • Escape Severity: MEDIUM

CVSS

  • CVSS_VECTOR: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:H/RL:O/RC:R
  • CVSS_SCORE: 6.9

References