| शीर्षक | unitedbyai droidclaw <= v0.5.3 Improper Restriction of Excessive Authentication Attempts (CWE-307) |
|---|
| विवरण | # Technical Details
An Unauthenticated Authentication Bypass via Rate Limiter Evasion and IP Spoofing exists in the `/pairing/claim` endpoint in `server/src/routes/pairing.ts` of droidclaw.
The application fails to properly rate limit authentication attempts against 6-digit pairing codes because it trusts the highly spoofable `X-Forwarded-For` and `X-Real-IP` HTTP headers to track rate-limiting attempts. The `isRateLimited()` function caches request attempts using this spoofable IP address as the map key.
# Vulnerable Code
File: server/src/routes/pairing.ts
Method: /pairing/claim endpoint
Why: The logic extracts the user's IP directly from the untrusted `x-forwarded-for` and `x-real-ip` headers, and uses it as a key for the rate limiter.
# Reproduction
1. Set up a running instance of the Droidclaw server.
2. Execute the brute-force PoC exploit script against the target endpoint.
3. Observe that the rate limit is entirely bypassed due to the randomized `x-forwarded-for` header, and the pairing code is successfully guessed.
# Impact
- An unauthenticated attacker can steal any active user's API key.
- Full control over the victim's Android device by connecting to the WebSocket API. |
|---|
| स्रोत | ⚠️ https://github.com/unitedbyai/droidclaw/issues/14 |
|---|
| उपयोगकर्ता | Eric-b (UID 96354) |
|---|
| सबमिशन | 07/05/2026 01:49 PM (28 दिन पहले) |
|---|
| संयम | 31/05/2026 09:34 AM (24 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 367495 [unitedbyai droidclaw तक 0.5.3 claim Endpoint pairing.ts सूचना का प्रकटीकरण] |
|---|
| अंक | 20 |
|---|