You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There might be a possible transition issue when renewing an existing subscription that does not yet have a hub.secret.
pubSubHubbubSubscribe() persists the new secret before the hub has verified the replacement subscription, while pshb.php requires a signature as soon as that secret is present.
Under WebSub, the previous subscription remains active until the replacement is verified, and remains active if verification fails. An in-flight push from the previous subscription would therefore still be unsigned and receive a 422 response... If the hub returns 202 but verification is delayed or fails afterward, legitimate pushes may continue to be rejected while FreshRSS still considers WebSub active and postpones its regular pull.
Could the transition between the old unsigned subscription and the new signed one be handled explicitly? A test covering delayed or failed verification and an in-flight push might be useful :)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://www.w3.org/TR/websub/#signing-content
hub.secretis optional, but improves security.Fix https://github.com/FreshRSS/FreshRSS/security/advisories/GHSA-498g-vgpq-mr66
Reported by @Atharros