Apollo Router, Access Control Bypass, CVE-2024-45621 (Critical)

Listen to this Post

How the CVE Works:

The vulnerability stems from the Apollo Router’s incorrect enforcement of GraphQL access control directives (@authenticated, @requiresScopes, @policy) on polymorphic types. The router applies security directives defined on an interface type but ignores any directives specified on the object types that implement that interface, provided all implementations share the same directive requirements. This creates a security gap where a malicious actor can craft a query targeting the interface fields, which are enforced, to indirectly access data from the underlying object fields, which are not enforced, thereby bypassing the intended access controls on the object types. The GraphQL specification lacks rules for directive inheritance, leading to this inconsistent runtime behavior and unauthorized data exposure.

DailyCVE Form:

Platform: Apollo Router
Version: <1.45.2, <1.46.0
Vulnerability: Access Control Bypass
Severity: Critical
date: 2024-10-18

Prediction: Patch available

What Undercode Say:

curl -H "Content-Type: application/json" -X POST -d '{"query":"query { someInterface { sensitiveField } }"}' http://router/graphql`
<h2 style="color: blue;">
./router –config config.yaml</h2>
<h2 style="color: blue;">
schema {

query: Query

}

interface SomeInterface {

sensitiveField: String @authenticated

}

type SomeObject implements SomeInterface {

sensitiveField: String

}`

How Exploit:

Craft interface queries.

Bypass object directives.

Access unauthorized data.

Protection from this CVE

Update Apollo Router.

Apply directives consistently.

Review schema polymorphic types.

Impact:

Unauthorized data access.

Security policy bypass.

Information disclosure.

🎯Let’s Practice Exploiting & Learn Patching For Free:

Sources:

Reported By: github.com
Extra Source Hub:
Undercode

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow DailyCVE & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin Featured Image

Scroll to Top