Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 41 additions & 23 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Loading