Files
at-container-registry/pkg
Evan JarrettandClaude Opus 5 cecb8879de billing: escape the DID before interpolating it into a Stripe search
findCustomerByDID built its search query with fmt.Sprintf, so the DID was
interpolated into a quoted Stripe search string unescaped. DIDs arriving
here are OAuth-validated and the DID grammar forbids quotes, so this is
not currently exploitable, but the query's safety depended on a validator
several layers away rather than on anything visible at the call site.

Escape backslash and single quote the way Stripe's search grammar
specifies.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-09 20:51:31 -05:00
..
2026-05-11 19:53:13 -05:00