Skip to content

Sync with upstream#32

Open
github-actions[bot] wants to merge 8 commits into
weirdgloop/REL1_45from
weirdgloop/repo-sync
Open

Sync with upstream#32
github-actions[bot] wants to merge 8 commits into
weirdgloop/REL1_45from
weirdgloop/repo-sync

Conversation

@github-actions

Copy link
Copy Markdown

No description provided.

translatewiki and others added 8 commits June 11, 2026 07:19
Change-Id: I940385727e6f98679f8f07ae46f7627e8f61e364
Change-Id: I974e0d3241a4326127d0c0cc9b38117dafeb35b4
Change-Id: Ie4ac2555409d542cfe499eade736e7593c049e08
CVE-2026-58027

Why:
* The QueryAbuseFilters API (action=query&list=abusefilters) returns
  the hit count for all filters, including private and protected ones,
  even when the requesting user lacks the necessary permissions. The
  Special:AbuseFilter UI correctly hides the hit count using
  canSeeLogDetailsForFilter(), but the API does not perform this check.

What:
* Gate the 'hits' field in the API response behind the same
  canSeeLogDetailsForFilter() permission check that the UI uses in
  AbuseFilterPager::formatValue().
* Add test coverage for hit count visibility with protected and hidden
  filters for users with varying permission levels.

Bug: T406954
Change-Id: Icd1a8e01366c2e8f4ed4cf0b3fdd3fca88725266
Change-Id: I19988519e9c680f4b62c8987d9da4313b6d09b70
Change-Id: I1288e86c666fd7bc78167cee6b1c90bc4ccc51d9
Change-Id: I44a6ae899917b2ed113212a131165f7c603838d9
Change-Id: Ic68680a644ecc1115738348872774a11fab55374
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants