Отправить #1065166: Civilized Discourse Construction Kit, Inc. (Discourse) Discourse 2026.9.0-latest Moderation queue denial and audit evasion: client-controlled autИнформация

НазваниеCivilized Discourse Construction Kit, Inc. (Discourse) Discourse 2026.9.0-latest Moderation queue denial and audit evasion: client-controlled aut
ОписаниеReviewableClaimedTopicsController#create derives the automatic attribute directly from client input: automatic = params[:reviewable_claimed_topic][:automatic] == "true" ... ReviewableClaimedTopic.create!(user_id: current_user.id, topic_id: topic.id, automatic:) (app/controllers/reviewable_claimed_topics_controller.rb:7-14). automatic is intended to represent server-side provenance (a claim created by the reviewable auto-claim flow), but here any staff member with topic-review rights can mint a claim with automatic: "true" over HTTP. The flag changes three security-relevant behaviors: Claiming-disabled bypass. UserGuardian#can_claim_reviewable_topic? returns (SiteSetting.reviewable_claiming != "disabled" || automatic) && can_review_topic?(topic) (lib/guardian/user_guardian.rb:5-7). A client-supplied automatic: true allows a claim even when the site has claiming disabled. Audit suppression. ReviewableClaimedTopic#log_topic_history returns early when automatic? is true (app/models/reviewable_claimed_topic.rb:17-19), so the claim creates no reviewable history entry. Permanent claim. ReviewableClaimedTopic.release_manual_claim only finds automatic: false (app/models/reviewable_claimed_topic.rb:8-9), and Reviewable#transition_to calls only that method (app/models/reviewable.rb:462-467). A client-minted automatic claim is therefore never released on transition and survives the reviewable leaving pending. ReviewablesController#claim_error? blocks any acting user other than the claimer while a claim exists, with no automatic/manual distinction (app/controllers/reviewables_controller.rb:325-331). The frontend's automatic-claim cleanup (frontend/discourse/app/components/reviewable/item.gjs:549-561) is best-effort client-side only; API use or a failed DELETE leaves the claim in place. Preconditions: the attacker holds topic-moderation/review rights (moderator, category moderator, or admin), a pending reviewable exists on the topic, and the attacker can call the claim endpoint. The attack does not require claiming to be enabled because automatic: true bypasses the disabled setting. Impact: denial of the moderation queue for that topic — other staff, including administrators, cannot act on its reviewables while the claim exists; audit evasion — no history records who claimed the topic or when; and persistence — the automatic claim survives transitions and can block future reviewables on the same topic. This is primarily availability/integrity of the moderation process, not confidentiality. Observed result: topic=19 reviewable=1 version=0; a claim with user=58 automatic=true returned 200 and a control claim with automatic=false returned 200; blocking_rule: claimed_by=58 != acting=59 => BLOCKS_OTHER_STAFF=true; automatic claim history count stayed before=1 after=1 (no entry), while the manual claim added a history entry; after transition_to(:approved), the automatic claim still existed and the manual claim was released; both reviewables ended approved. The HTTP log confirms both claim creations and the history/release behavior. The second admin's perform request was started but no completed HTTP response was captured; the block is confirmed by the server-side claim_error? code path and model state. Suggested fix: treat automatic as server-minted provenance, not client input — reject or ignore client-supplied automatic: true in ReviewableClaimedTopicsController#create, and have the server create automatic claims only inside the trusted perform flow. Release all claims (or at least user-created automatic claims) on transition_to, log automatic claims with provenance instead of skipping history, never let a claim block administrators, and expire stale claims. Classification: CWE-284 / CWE-863 (Improper Access Control) and CWE-778 (Insufficient Logging). Proposed CVSS 3.1: 5.5 Medium (AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:H); 6.5 Medium if audit suppression is scored as high integrity impact.
Источник⚠️ https://gist.github.com/yxxx21635-tech/d1551ed9ff6a6bbd8a09872197df28b9
Пользователь
 zerOiQ (UID 102613)
Представление29.10.2026 18:14 (1 месяц назад)
Модерация04.12.2026 00:46 (1 month later)
Статуспринято
Запись VulDB449503 [Discourse до 2026.12.0 reviewable_claimed_topics_controller.rb Create automatic эскалация привилегий]
Баллы20

Do you need the next level of professionalism?

Upgrade your account now!