Unverified Commit 14f07359 authored by Hong Minhee's avatar Hong Minhee
Browse files

Fix HTTP sig verify with created/expires fields

Fixed a bug where verifyRequest() threw a TypeError when verifying
HTTP signatures containing `created` or `expires` fields as defined
in draft-cavage-http-signatures-12. These fields should be unquoted
integers according to the specification, but the parser was only
handling quoted string values.

This issue was causing 500 Internal Server Error responses in inbox
handlers when receiving activities with such signatures. The fix now
correctly parses both quoted strings and unquoted integers in the
Signature header, and properly validates the created/expires timestamps.

Added test case with a real-world signature example from oeee.cafe
that includes both created and expires fields.
parent c635b07a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment