99designs / 99designs/http-signatures-php

Reject messages with insufficient signed headers

オープン
#56 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
PHP
スター
46
フォーク
35
PR マージ指標
30日以内にマージされた PR はありません

説明

The server should be able to require the client to sign certain headers, and reject any messages in which these headers are unsigned.
For example, a server should be able to require a signed `digest` header for POST requests, and reject any message that doesn't have a signed digest header.

This protects against sloppy clients "leaving the door open": if a POST request with an unsigned digest is intercepted, the message body can be manipulated without invalidating the signature, and the forged message would be accepted.

This could be prevented by supplying a list of required headers to the constructors of the Verifier and Verification classes.
It might be useful to supply two sets of headers, one for requests without a body, and another for messages with a body. (Note that DELETE requests may or may not have a body).

For reference: https://datatracker.ietf.org/doc/html/rfc9421#verify-requirements

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

調査の方向性

Look at the Verifier and Verification classes to understand how signatures are currently validated. The RFC 9421 section on verification requirements outlines the logic for mandatory signed headers. Implement a way to pass required header lists into the constructors, handling the distinction between requests with and without a body. Test with POST requests having a digest header to ensure unsigned ones are rejected.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
php
領域
backend-api-design, security
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。