This module exploits a command injection vulnerability in Web-Check's `/api/screenshot` endpoint. The `directChromiumScreenshot()` function uses `child_process.exec()` with unsanitized user input, allowing command injection via URL query parameters. The vulnerability was patched in commit 0e4958aa10b2650d32439a799f6fc83a7cd46cef by replacing `exec()` with `execFile()`.
Vulnerability
CVE-2025-32778
Web-Check allows command Injection via Unvalidated URL in Screenshot API
Vulnerability details
- Score
- 9.3
- Severity
- critical
CVSS 4.0 · GitHub_M
Vector string
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NDescription
Web-Check is an all-in-one OSINT tool for analyzing any website. A command injection vulnerability exists in the screenshot API of the Web Check project (Lissy93/web-check). The issue stems from user-controlled input (url) being passed unsanitized into a shell command using exec(), allowing attackers to execute arbitrary system commands on the underlying host. This could be exploited by sending crafted url parameters to extract files or even establish remote access. The vulnerability has been patched by replacing exec() with execFile(), which avoids using a shell and properly isolates arguments.
CVE ProgramExploit source choices
2 sourcesPoC exploit for CVE-2025-32778: command injection in Web-Check OSINT tool