Files
FreshRSS/p/api
Alexandre Alapetiteandsenti-man acef1de21f Security: Use hash_equals() for GReader API token comparison (#9183)
GReaderAPI::authorizationToUser() compared the long-lived GReader
bearer token with the non-constant-time === operator instead of
hash_equals(), unlike every other token/secret comparison in the
codebase (Auth::checkCsrfProtection(), FeverAPI, the OPML/RSS feed
token check, and the short-lived GReader token check a few lines
below in the same file), all of which already use hash_equals().

This brings the long-lived token check in line with the existing
hash_equals(sha1(...), $token) pattern already used for the
short-lived token a few lines below.

Co-authored-by: senti-man <sentiman49@gmail.com>
2026-08-08 20:52:55 +02:00
..
2026-08-01 23:14:35 +02:00