mediawiki-extensions-AbuseF.../includes/View
STran 30227231f6 Disallow protected variable access on AbuseFilterViewTestBatch
A filter using a protected variable can be loaded via filter id
using testing tools even though the user might not have the right
to view protected variables. This can potentially leak PII and as
such, testing tools should check for the right before allowing
protected filters to be seen.

- Unload a filter asap if it uses protected variables and the
  requestor doesn't have viewing rights. This:
    + disallows loading of existing protected filters on page load
    + disallows testing against rules that use protected variables
    + disallows subsequent requests for protected filters (via API)

There is a known bug (see T369620) where no user feedback is
provided if an API request for a filter returns no result (typically
when no filter matches the requested id). This commit adds another
pathway to that bug (the filter exists but is protected and not
returned by the API) but does not update this UI/UX.

Bug: T364834
Change-Id: I6a572790edd743596d70c9c4a2ee52b4561e25f3
2024-07-10 05:31:03 -07:00
..
AbuseFilterView.php Support more log actions in testing interface 2024-06-19 17:35:43 +02:00
AbuseFilterViewDiff.php Use namespaced classes 2024-06-12 20:01:35 +02:00
AbuseFilterViewEdit.php Miscellaneous minor fixes 2024-07-03 02:31:38 +02:00
AbuseFilterViewExamine.php Miscellaneous minor fixes 2024-07-03 02:31:38 +02:00
AbuseFilterViewHistory.php Use namespaced classes 2024-06-12 20:01:35 +02:00
AbuseFilterViewImport.php Use namespaced classes 2024-06-12 20:01:35 +02:00
AbuseFilterViewList.php Only return filters visible to user in search 2024-07-08 02:47:57 -07:00
AbuseFilterViewRevert.php Use namespaced classes 2024-06-12 20:01:35 +02:00
AbuseFilterViewTestBatch.php Disallow protected variable access on AbuseFilterViewTestBatch 2024-07-10 05:31:03 -07:00
AbuseFilterViewTools.php Use namespaced classes 2024-06-12 20:01:35 +02:00
HideAbuseLog.php Use namespaced classes 2024-06-12 20:01:35 +02:00