Page MenuHomePhabricator

CVE-2024-40598: CheckUser API can expose suppressed information for log events
Closed, ResolvedPublic2 Estimated Story PointsBUG REPORT

Description

Splitting from T318166. Not setting as a security ticket as the cat is out of the bag.

Log actions stored by CheckUser that are in the logging table (and thus can be suppressed) are not hidden as CheckUser does not store the log ID so that it can look up the revision deletion status. This means that checkusers who do not have the oversight permissions can access oversighted logs.

To do this CheckUser needs to store any associated log ID. This will be done in T324907. Once this has been achieved this can be fixed.

Related Objects

View Standalone Graph
This task is connected to more than 200 other tasks. Only direct parents and subtasks are shown here. Use View Standalone Graph to show more of the graph.

Event Timeline

Change #1017294 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/CheckUser@master] Apply log_deleted to entries in CheckUser API 'actions' type

https://gerrit.wikimedia.org/r/1017294

Change #1017294 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] Apply log_deleted to entries in CheckUser API 'actions' type

https://gerrit.wikimedia.org/r/1017294

For QA I would suggest suppressing a variety of information about log events and see if the information for these log events still displays in the CheckUser API.

dom_walden subscribed.

I hid all the entries in logging, revision and archive tables and did an ApiQueryCheckUser on all users and IPs in cu_changes. I then searched the API responses for any usernames in the actor table.

I could only find them if they were for entries in cu_private_event, which cannot be hidden.

Test environment: local docker CheckUser 2.5 (eda557a) 19:43, 9 April 2024.

mmartorana renamed this task from CheckUser API can expose suppressed information for log events to CVE-2024-40598: CheckUser API can expose suppressed information for log events.Jul 8 2024, 5:33 PM