Require the Host header to be present for validating signatures #13
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "phnt/http_signatures:host-verification"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From referenced issue
Closes pleroma-secteam/pleroma#67
The validation function now also can return {:error, atom()}, which when encountered in an assert will not fail the test unless it is compared with the intented result.Due to how Pleroma handles checking whether the signature check failed or not, returning the error tuple also constitutes as a valid signature. (Pleroma uses `cond` which matches on the first thing that does not evaluate to false or nil and {:error, reason} passes that test.)WIP: Require the Host header to be present for validating signaturesto Require the Host header to be present for validating signatures84ff25249c673b3f7ba2