Operation variable definitions remain a slice scanned twice for each argument variable reference. Both invalid duplicate arguments and a valid flat operation with many uniquely aliased field uses yield N references against N definitions, causing quadratic validation CPU before resolver execution.
Variable uses in field, directive, and nested value validation repeatedly search operation variable definitions linearly; the same lookup also occurs in root argument coercion. Duplicate argument rejection does not short-circuit the repeated scans, but valid aliased uses reach the same issue.
Build a variable-definition index once per operation and reuse it in field, directive, nested value validation, and root argument coercion. Test both a valid alias-heavy operation and an invalid duplicate-argument operation with many variables; preserve the duplicate-argument error. Enforce a query-size budget as an additional bound on validation work. Finding ID: csf_c5ea442b2e8239ddff9c5359 Primary fingerprint: codex-security/v1:sha256:759eb6baeef7aafdd4edd071b38318762c3046677a96c7e0e13ac8bd95d8b87e Source revision: c70a100fae8068a9dd3dd5a76608adf2d6d9f2ca
A document can define unique variables and reuse them across semantically duplicate arguments of one valid field. The duplicate check only records errors; the subsequent argument loop searches the full variable definition slice twice for each reference, yielding O(N²) work before rejection. A valid query can declare N String! variables and select N distinct aliases of the shipped hello(name: String!) field, each using a variable near the end of the definition list. Field validation invokes two O(N) searches per selection. The document has O(N) syntactic elements but validation performs O(N²) variable comparisons. The default parser has no token ceiling; an HTTP adapter's body limit bounds bytes but does not eliminate the superlinear work. An additional source trace identifies one valid list argument with N variable references; each nested value scans the N definitions.
Inspect the linked paths at commit c70a100fae8068a9dd3dd5a76608adf2d6d9f2ca. This scan did not execute an exploit or test a deployed service.
Quadratic CPU use can stall request workers with a compact invalid query. Prerequisites: The HTTP adapters pass accepted query text to runtime request validation, which invokes executable validation before dispatch. The same validation is available through the public compiler API. The public GraphQL request parser/validator processes client-controlled operation text. The shipped example schema has hello(name: String!), sufficient for the flat alias pattern; service network reachability remains host-dependent. Validation limits: No runtime timing or request execution was performed. No timing or resource-exhaustion reproduction was performed. No runtime timing or memory benchmark was performed. Exposure depends on an application schema with a list argument and its route configuration.
Fuente: NVD
Evaluación gratuita de vulnerabilidades
Evalúa tus prácticas de seguridad en la nube en 9 dominios de seguridad para evaluar tu nivel de riesgo e identificar brechas en tus defensas.
Obtén una demostración personalizada
"La mejor experiencia de usuario que he visto en mi vida, proporciona una visibilidad completa de las cargas de trabajo en la nube."
"Wiz proporciona un panel único para ver lo que ocurre en nuestros entornos en la nube."
"Sabemos que si Wiz identifica algo como crítico, en realidad lo es."