Signature Over Query Parameters
Check whether query parameters that influence routing or tenant selection are covered by the signature, since an unsigned parameter redirects a correctly verified delivery
Use when: the receiver reads tenant, account or mode from the query string on the webhook path
Avoid when: the canonical string demonstrably includes the full request target and a test confirms it
Procedure
- List every query parameter the receiver reads and mark which of them affect routing or processing.
- Send a correctly signed delivery to the canonical path with no query parameters, as the control case.
- Send the same signed delivery with one routing parameter added and a second with its value changed.
- Capture status, body and timing for each, and note which value the handler acted on.
- Check the canonical string from your earlier audit to confirm whether the target path was included at all.
- Record each parameter with a covered or uncovered verdict and the observed effect of changing it.
Signals
- A tenant or account parameter lives in the query string while the canonical string covers only the body
- Adding a query parameter does not invalidate an otherwise correct signature
- Changing a routing parameter redirects processing while verification still passes
- The canonical string includes the path but not the query component of the target
Patterns
1. Coverage table
parameter | in query | affects routing | signed
mode | yes | yes | no <- uncovered
id | yes | no | no
n/a | path only | - | yes
2. Control-and-variant
control: signed delivery to bare path; variant: same bytes plus ?tenant=other; the difference in behaviour is the entire evidence
3. Canonical reminder
the signature covers <timestamp>.<body>; if the target is not in that string, no query parameter can be covered by it
Pitfalls
- Testing only path parameters when the receiver actually routes on the query string
- Reporting an uncovered parameter that has no effect on processing
- Forgetting the control case, so a rejection cannot be attributed to the added parameter
Done when
- Every query parameter the receiver reads has a coverage verdict and an observed effect
- A control delivery to the bare path is recorded alongside each variant