Skip to main content

silentparams

Find HTTP APIs that silently ignore misspelled query parameters.

You call GET /issues?states=closed. The API only knows state. It does not answer "unknown parameter": it answers 200 with every open issue, and your code (or your agent) believes it filtered. Nothing failed, so nothing alerts.

silentparams sends a handful of read-only requests with plausible misspellings of each parameter in your URL and tells you, per name, whether the API rejects it, accepts it as an alias, or ignores it without a word.

$ silentparams "https://api.github.com/repos/python/cpython/issues?state=closed&per_page=3"
Parameter 'state=closed': removing it changes the response
  states                   HTTP 200  IGNORED silently (2xx, same as without the parameter)
  STATE                    HTTP 200  IGNORED silently (2xx, same as without the parameter)
  zzb22fbb9f               HTTP 200  IGNORED silently (2xx, same as without the parameter)
...
RESULT: this API silently ignores unknown parameter names. A typo in a filter returns unfiltered data with HTTP 200.

That is not a bug in GitHub. Ignoring unknown parameters is a common design choice. It just means a typo in your client is invisible, so you should know which APIs behave this way before you trust a filtered result.

Install

pip install silentparams   # no dependencies, Python 3.10+
# or the latest code: pip install git+https://github.com/novasdiego1/silentparams

How it works

For each query parameter p in the URL:

Request Purpose
the URL as given, twice baseline, and a check that the response is stable
the URL without p what the API returns when p is absent
p renamed (plural/singular, trailing _, case, snake/kebab/camel, doubled letter) and one nonsense name the decoys

Each decoy is classified by comparing normalized response bodies (JSON is canonicalized, so key order does not matter):

Verdict Meaning
IGNORED silently 2xx and the same response as without p: the name was dropped without a word
rejected 4xx: the API refuses unknown names (the safe behaviour)
alias 2xx and the same response as the baseline: the variant is accepted
different 2xx with some other response: inconclusive
no-effect 2xx, but removing p changes nothing either, so an ignored name and an alias look the same: inconclusive

When removing p changes nothing, p itself may be ignored, or its value may be the server default (state=open on an API that returns open items by default). To tell these apart, silentparams also sends p=__silentparams__. If that invalid value changes the response (usually a 4xx), the name is known, and each decoy is re-sent with the same invalid value: answering like p makes it an alias, answering like no parameter at all makes it ignored. If the invalid value changes nothing either, the decoys stay no-effect.

Options

-H 'Name: value'     extra header (repeatable), e.g. an Authorization token
--ignore-key KEY     JSON key to ignore when comparing (timestamps, request ids)
--decoys N           decoy names per parameter (default 6)
--max-requests N     hard cap on requests sent (default 60)
--delay S            seconds between requests (default 0.5)
--json               machine-readable report

Exit code: 1 if the API silently ignores unknown names, 0 if it rejects them, 3 if the result is inconclusive, 2 on usage errors. That makes it usable as a CI check for an API you own: treat 3 as "look at it", not as a pass.

If the same request returns different bodies (a timestamp, a request id), the report warns that results are unreliable, lists the fields that changed between the two reads and suggests the matching --ignore-key flags.

Be polite

It only sends GET requests, waits between them, and stops at --max-requests. Point it at APIs you are allowed to query, and mind their rate limits.

Why this exists

An auditor reported reaching a wrong conclusion this way. They tried four spellings of a per-author filter (author, agent, agent_id, pubkey) on an API that only declared authors. Every request returned 200 with unfiltered rows, so they wrote that no such filter existed. The same API rejected a bad limit value with 422: it checked values carefully and never checked names.

License

MIT

Metadata

Release files for silentparams 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for silentparams 0.2.0
File Size Uploaded Provenance Actions
silentparams-0.2.0.tar.gz 13.3 kB Without provenance Details for silentparams-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for silentparams 0.2.0
File Interpreter ABI Platform Actions
silentparams-0.2.0-py3-none-any.whl Python 3 none any Details for silentparams-0.2.0-py3-none-any.whl

Total release size: 24.1 kB

Release files / silentparams-0.2.0.tar.gz

Download URL silentparams-0.2.0.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
eb7ba23a2607cf4cb66f12b90848b4db24b86ebb841b63c949fe64ff4ef7687d
BLAKE2b-256 checksum
How to use checksums
8a5b034e088ce6a81e44b210ea49adcc2c07f8ae4ab30dd18c55d94987014378
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Release files / silentparams-0.2.0-py3-none-any.whl

Download URL silentparams-0.2.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f95c130bc5a325bd0e1d16daa7f3ff20571f7e3a8b58f710658f7b73e1397095
BLAKE2b-256 checksum
How to use checksums
97fe6ba5f74e43700d9f8ce8947e4262386190a29e9e8226b0cb0cb4eac3989c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.4

Security for silentparams 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page