Repository navigation
refactor(harp): compare the HaRP shared key with hash_equals - #1114
Conversation
Signed-off-by: Oleksandr Piskun <oleksandr2088@icloud.com>
|
/backport to stable35 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
HarpController::validateHarpSharedKey()compared theharp-shared-keyheader with the stored key using!==. This useshash_equals()instead, the PHP function meant for comparing keys and tokens, as AppAPI already does for Talk bot signatures inTalkBotController. The empty-header check stays, and the result is the same for every input.