ISC2 Certified Secure Software Lifecycle Professional (CSSLP) Practice Question
Your team is designing a JSON/REST API for a multi-tenant SaaS platform. They propose including an API key as a query parameter in every request (e.g., /api/v1/resource?apikey=ABC123). As the security lead reviewing the protocol design, what primary security concern should you raise about this choice?
Browsers omit query parameters when transmitting HTTPS requests, breaking authentication that relies on them.
Query strings are often logged or leaked via browser history and Referer headers, exposing the API key to attackers.
Query parameters cannot exceed 32 characters, so the API key would lack sufficient entropy.
Using query parameters disables API gateway rate-limiting and throttling mechanisms.
Placing credentials such as API keys in the URL's query string is discouraged because many components (browsers, reverse proxies, load balancers, web servers) routinely log the full URL or expose it in the Referer header. If the key appears in those logs or headers, an attacker with log access-or who can capture a Referer-can steal the credential and impersonate legitimate clients. Sending credentials in the HTTP Authorization header avoids this widespread exposure. HTTPS does not remove query parameters, there is no hard length cap that limits key entropy, and throttling or rate-limiting can still be enforced regardless of where the credential resides.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why is exposing API keys in query parameters a security risk?
Open an interactive chat with Bash
What is the Referer header and how does it lead to API key exposure?
Open an interactive chat with Bash
What is a safer alternative to sending API keys in the query string?
Open an interactive chat with Bash
ISC2 Certified Secure Software Lifecycle Professional (CSSLP)
Secure Software Architecture and Design
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .