Skip to content

A free, self-hostable news aggregator…

Reject token access (RSS/OPML export, feed refresh) for disabled accounts (CWE-613) (#9336)

Gigi6780afe846d6
diff --git a/lib/Minz/Request.php b/lib/Minz/Request.php
index 2c3626fba..3344078f4 100644
--- a/lib/Minz/Request.php
+++ b/lib/Minz/Request.php
@@ -599,7 +599,7 @@ class Minz_Request {
return false;
}
$conf = FreshRSS_UserConfiguration::getForUser($username);
- if ($conf === null || !hash_equals($conf->token, $token_param)) {
+ if ($conf === null || !$conf->enabled || !hash_equals($conf->token, $token_param)) {
return false;
}
return true;