| शीर्षक | NASA Trick 19.6.0 Buffer Overflow |
|---|
| विवरण | JSONVariableServerThread::parse_request() in trick_source/sim_services/JSONVariableServer/JSONVariableServerThread.cpp line 104 uses sscanf(incoming_msg, "%s %s", command, path) where command is a 32-byte stack buffer and incoming_msg is sourced directly from recvfrom() on a TCP socket. An unauthenticated remote attacker sending a request whose first whitespace-delimited token exceeds 31 characters causes a stack-based buffer overflow (CWE-121). The developer left a comment in the source: "Need to protect against buffer overflow" but the fix was never applied. ASan confirms WRITE of size 34 overflowing command[32].
poc.py && log
https://app.notion.com/p/Stack-based-Buffer-Overflow-in-NASA-Trick-JSONVariableServer-via-Unbounded-sscanf-on-Network-Receive-39cbd773e51180e1917cd717b90b8bc8?source=copy_link |
|---|
| स्रोत | ⚠️ https://github.com/nasa/Trick |
|---|
| उपयोगकर्ता | juntheworld (UID 99760) |
|---|
| सबमिशन | 13/07/2026 04:06 PM (2 महीनों पहले) |
|---|
| संयम | 29/08/2026 04:40 PM (2 months later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 397028 [NASA Trick 19.6.0 TCP Socket JSONVariableServerThread.cpp parse_request बफ़र ओवरफ़्लो] |
|---|
| अंक | 19 |
|---|