SiteShadow
Back to vulnerability library
Detected byCWE-aware static analysis

CWE-598 Information Exposure Through Query Strings

Coverage: 5 rules in the SiteShadow rule registry target this CWE (registry v2.0.0). Regex 5 Also: Taint and heuristic analyzers may also detect related flows (see coverage for the authoritative list) Registry tagging shows intent, for sample-level behaviour and benchmarked gaps see known gaps.

What this means

SiteShadow flagged sensitive data being placed into URL query parameters (tokens, passwords, API keys, personal data).

Why it matters

Query strings can leak through logs, history, and referrers.

Safer examples

1) Use headers or POST bodies for secrets

await fetch("/api/resource", {
  method: "POST",
  headers: { Authorization: `Bearer ${token}` },
});

2) Use opaque IDs instead of raw data

Put an ID in the URL, not the sensitive value itself.

3) Redact URLs in logs/telemetry

If URLs must include sensitive values (avoid it), ensure redaction happens before logging/analytics.

How SiteShadow detects it (high level)

References

---

← Back to Vulnerability Library

Catch this in your code with SiteShadow.

Every released SiteShadow scanner is free, including full project analysis, reports, patterns, dashboard access, and configured organization SSO.