إرسال #1055360: FredrikNoren ungit 1.5.30 Missing Authentication for Critical Functionالمعلومات

عنوانFredrikNoren ungit 1.5.30 Missing Authentication for Critical Function
الوصفungit 1.5.30 exposes the POST /api/userconfig endpoint without effective authentication when the default authentication setting is false. The endpoint serializes the complete request body and writes it directly to the user's .ungitrc configuration file without a field allow-list. At startup, ungit loads .ungitrc through the rc configuration mechanism. Configuration values from this file override the default settings, including launchCommand. Both the command-line launcher in bin/ungit and the Electron entry point in public/main.js pass launchCommand to child_process.exec, which interprets the value as a shell command. An attacker who can send a direct request to the local service can write an arbitrary launchCommand value, for example a command that creates a proof file or downloads and executes another payload. The command is executed automatically when the victim next starts or restarts ungit, with the privileges of the user running the application. The same configuration overwrite can set ungitBindIp to x.x.x.x while keeping authentication disabled, exposing the unauthenticated API to the local network after restart. The primary attack paths are a local process, a LAN host when the service is reachable, or a DNS-rebinding page that becomes same-origin with the service. An ordinary cross-origin JSON POST is blocked by the server's missing CORS preflight response. A text/plain simple request reaches the server but is not parsed by body-parser.json(), so it does not produce a valid configuration write. Successful exploitation provides persistent command execution on the next ungit startup. The public report contains a verified configuration write, restart-triggered command execution, and proof-file output. The issue is publicly documented at: https://github.com/FredrikNoren/ungit/issues/1689 Remediation should require authentication for /api/userconfig, restrict writable fields to a safe allow-list, remove shell-based launchCommand execution or replace it with a fixed executable and argument array, and prevent remote modification of security-sensitive settings such as ungitBindIp and authentication.
المصدر⚠️ https://github.com/FredrikNoren/ungit/issues/1689
المستخدم
 fifker (UID 101353)
ارسال24/10/2026 10:08 AM (1 شهر منذ)
الاعتدال23/11/2026 02:33 PM (1 month later)
الحالةتمت الموافقة
إدخال VulDB442302 [FredrikNoren ungit 1.5.30 API Server source/server.js writeUserConfig launchCommand توثيق ضعيف]
النقاط20

Do you know our Splunk app?

Download it now for free!