Require the Host header to be present for validating signatures #13

Merged
lambadalambda merged 15 commits from phnt/http_signatures:host-verification into master 2026-05-11 15:48:03 +00:00
Member

From referenced issue

Pleroma doesn't validate the HOST header when verifying the http signature. This means that on some servers which aren't behind a reverse proxy, or have some other way to bypass it are vulnerable to a replay attack on activitypub endpoints.

Closes pleroma-secteam/pleroma#67

From referenced issue >Pleroma doesn't validate the HOST header when verifying the http signature. This means that on some servers which aren't behind a reverse proxy, or have some other way to bypass it are vulnerable to a replay attack on activitypub endpoints. Closes pleroma-secteam/pleroma#67
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.)
phnt changed title from WIP: Require the Host header to be present for validating signatures to Require the Host header to be present for validating signatures 2026-05-10 20:46:49 +00:00
Reduce refetch guard nesting
Some checks are pending
ci/woodpecker/pr/lint Pipeline is pending approval
ci/woodpecker/pr/unit-testing-elixir-1.15 Pipeline is pending approval
ci/woodpecker/pr/unit-testing-elixir-1.19 Pipeline is pending approval
84ff25249c
lambadalambda force-pushed host-verification from 84ff25249c
Some checks are pending
ci/woodpecker/pr/lint Pipeline is pending approval
ci/woodpecker/pr/unit-testing-elixir-1.15 Pipeline is pending approval
ci/woodpecker/pr/unit-testing-elixir-1.19 Pipeline is pending approval
to 673b3f7ba2 2026-05-11 15:16:19 +00:00
Compare
Reduce refetch guard nesting
Some checks are pending
ci/woodpecker/pr/lint Pipeline is pending approval
ci/woodpecker/pr/unit-testing-elixir-1.15 Pipeline is pending approval
ci/woodpecker/pr/unit-testing-elixir-1.19 Pipeline is pending approval
84ff25249c
Merge master into host validation
All checks were successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/unit-testing-elixir-1.15 Pipeline was successful
ci/woodpecker/pr/unit-testing-elixir-1.19 Pipeline was successful
91ffa47634
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pleroma-elixir-libraries/http_signatures!13
No description provided.