| शीर्षक | zhblue HUSTOJ up to 7a03238 Exposure of File Descriptor to Unintended Control Sphere ('File |
|---|
| विवरण | HUSTOJ's judge daemon judged runs as root and holds an authenticated MySQL session. For every submission it spawns judge_client, which opens a second authenticated MySQL connection using credentials from /home/judge/etc/judge.conf. judge_client then forks a child, drops privileges to the unprivileged judge account (uid 1536), optionally chroots into the working directory, and executes the user-supplied submission.
Neither judged nor judge_client sets close-on-exec on the database sockets, nor closes inherited descriptors before executing untrusted code. git log -S 'CLOEXEC' -- trunk/core/ returns zero commits across the project's entire history. A chroot only affects path resolution and does not isolate an already-open socket, and write is part of every language's syscall whitelist in okcalls64.h — so the sandboxed submission inherits live, fully authenticated MySQL sessions and can issue arbitrary SQL by writing a MySQL client packet (COM_QUERY) to the inherited descriptors (blind writes to descriptors 3..25; each judge worker contributes one descriptor). |
|---|
| स्रोत | ⚠️ https://gist.github.com/haoran37/8bc863556714b5dbbd0b6e8761c9a72e |
|---|
| उपयोगकर्ता | _37_ (UID 102491) |
|---|
| सबमिशन | 25/10/2026 08:19 PM (30 दिन पहले) |
|---|
| संयम | 24/11/2026 10:11 AM (30 days later) |
|---|
| स्थिति | स्वीकृत |
|---|
| VulDB प्रविष्टि | 442782 [zhblue hustoj तक 26.08.19 Judge Daemon Sandbox judged.cc अधिकार वृद्धि] |
|---|
| अंक | 20 |
|---|