CVE-2023-31143: Mage-ai missing user authentication
5.9
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.3078%
CWE
Published
5/5/2023
Updated
9/30/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| mage-ai | pip | >= 0.8.34, < 0.8.72 | 0.8.72 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stemmed from two key functions in the terminal WebSocket handler:
- In 'TermSocket.open', authentication was partially implemented but lacked role validation and proper error handling for invalid tokens.
- The missing 'on_message' override allowed command processing without authentication. The patch added this method with explicit auth checks, confirming these were the vulnerable points. The frontend changes to include auth data in messages further corroborate that the server-side message handling was previously unauthenticated.