The latest tagged release. There are no long-lived release branches, so a fix ships in the next tag rather than being backported.
Use GitHub's private vulnerability reporting on this repository: https://github.com/Rethunk-Tech/go-paradoxmods/security/advisories/new, or the Security tab, then Report a vulnerability. The report stays private between you and us until a fix ships.
If private reporting is unavailable, email oss@rethunk.tech with [SECURITY] in the subject.
Please do not open a public issue, pull request or discussion for a suspected vulnerability.
A useful report has the affected repository and version (or commit), steps to reproduce, what an attacker gets and under which conditions, and whether anyone else knows.
A vulnerability is a flaw that lets someone cross a boundary they should not: run code, read or change data they have no right to, escape a sandbox or path restriction, or leak a credential. A bug is anything else that misbehaves, such as a crash on your own input, wrong output or a slow path; open an ordinary issue for those. If you are unsure which one you have, report it privately and we will say.
We handle the report inside the private advisory, so you see each status change and can comment on the fix. The advisory goes public when the fix ships, or 90 days after your report, whichever comes first. If a fix is close, either of us can ask for more time in the thread. You are credited in the advisory unless you would rather not be.
- We acknowledge your report within 3 business days.
- We give you an assessment (accepted, needs more information or declined, with reasons) within 10 business days.
- We aim to ship a fix within 90 days of the report.
- The API's JSON answers, for every call. A crafted answer must not read more than 16 MiB, must not panic the decoder, and must not make a later call reach a different origin: the body is read through a cap and redirects are refused unless they stay on the request's own scheme and host.
- Ids and version numbers passed to
Client.ModandClient.Versions. A crafted id must not reach the API as anything but a short decimal number, and must not become a path segment of a page address:ValidIDis the one check, andPageURLanswers "" rather than an address for an id it rejects. - The file name and game name passed to
DownloadURL. These come from an API answer and are interpolated into an address without escaping, so a crafted answer must not be able to point the download at another host or outside the mod's own directory.Mod.Nameis the field the API uses for this;ValidIDcovers ids, not names. - Error text. A transport failure must not quote a URL's userinfo or query in an error string; it is redacted before it is returned.
The caller is trusted to:
- Pass its own
Config.UserAgent; the client sends what it is given and invents none. - Check
DownloadURL'snameargument itself, when it does not come straight fromMod.Nameof an answer about that same mod. The address is built by concatenation and does not escape anything. - Decide that an answer is trustworthy enough to act on: this package proves that a response is well-formed and within bounds, not that the mod it describes is safe to install.
- Run its own TLS trust, proxies and timeouts inside
Config.HTTP, and hand over a client it is happy to share.
Intended behaviour, not a vulnerability: a refusal the API sends with a 200 status (*APIError), an empty page, an
unknown Sort value sending no order at all, and a page size above MaxPageSize being reduced to it.
We will not pursue legal action against good-faith research that avoids privacy violations, data destruction and disruption of services, stops at a proof of concept, and keeps the details private until the advisory is published. Rethunk.Tech, LLC maintains this repository.