From 4254abbbd18de6f5146bcd3354755209b71416f9 Mon Sep 17 00:00:00 2001 From: Manu Garg Date: Mon, 9 Nov 2026 23:31:03 -0800 Subject: [PATCH] SECURITY.md: treat PAC files as trusted input and narrow scope PAC files are programs run unsandboxed in QuickJS, so issues that need an attacker-controlled PAC file are out of scope, as are QuickJS bugs (report upstream), bad values from the embedding application or command line, build/install-time and local-only issues, and unverified reports from automated tools or AI agents. --- SECURITY.md | 64 ++++++++++++++++++++++++++++++++++------------------- 1 file changed, 41 insertions(+), 23 deletions(-) diff --git a/SECURITY.md b/SECURITY.md index e3d70a5..d183748 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -8,26 +8,44 @@ This project is maintained by a team of volunteers on a reasonable-effort basis. ## Scope -Pacparser evaluates PAC scripts and resolves proxies for URLs. We are -interested in issues that a remote party can trigger through those inputs: -for example, memory corruption or code execution caused by a crafted PAC -file, URL, or host name. - -The following are **out of scope**. Reports about them will be closed -without a security advisory, CVE, or credit: - -- Build-time and install-time issues that require a local attacker to plant - files on the build machine and a victim to then build or install - pacparser with elevated privileges. Where practical, we still fix these as - ordinary hardening. -- Local-only issues that depend on the victim taking unusual or unsafe - actions, such as building or running pacparser as root from a directory - that other users can write to. -- Issues in the build scripts, CI configuration, test code, or examples - that do not affect the shipped library, `pactester`, or Python module. -- Findings from automated scanners or AI tools without a realistic, - demonstrated attack path against a typical use of pacparser. -- Denial of service from a PAC script that is slow or never terminates. - PAC files are code, so only load PAC files you trust to run. - -Hardening suggestions are welcome as regular issues or pull requests. +### Trust model + +A PAC file is a program. Pacparser runs it in an embedded JavaScript engine +(QuickJS) and does not sandbox it. **Only load PAC files you trust**, just as +you would only run scripts you trust. Pacparser is not designed to safely +evaluate PAC files supplied by an attacker. + +### In scope + +Issues that an attacker can trigger against a typical use of pacparser +without controlling the PAC file: for example, memory corruption in +pacparser's own code (`src/pacparser.c`, `pactester`, or the Python module) +caused by a crafted URL or host name passed to a trusted PAC file. + +### Out of scope + +Reports about the following will be closed without a fix, security +advisory, CVE, or credit: + +- Any issue that requires the attacker to supply or modify the PAC file, + including memory corruption, crashes, hangs, or excessive resource use + in the JavaScript engine. +- Bugs in QuickJS itself. Please report those to the upstream QuickJS + project. Pacparser picks up upstream fixes when it updates its vendored + copy. +- Issues that require a malicious or nonsensical value from the embedding + application or the command line (for example, through + `pacparser_setmyip()` or `pactester` options). +- Build-time and install-time issues, including ones that rely on files + planted on the build machine. +- Local-only issues, and issues that depend on the victim taking unusual or + unsafe actions. +- Issues in build scripts, CI configuration, test code, or examples. +- Reports generated by automated scanners, fuzzers, or AI agents, unless a + person has verified a realistic attack against a typical use of + pacparser. + +Reporters who repeatedly send out-of-scope reports may be blocked. + +Non-security bug fixes and hardening suggestions are welcome as regular +issues or pull requests.