Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F31764949
T250594.patch (v.1)
DannyS712
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
DannyS712
Apr 19 2020, 12:44 AM
2020-04-19 00:44:28 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
T250594.patch (v.1)
View Options
From ed2f2bf9f6cee9a7d800d94db551ad6fc67cc34c Mon Sep 17 00:00:00 2001
From: dannys712-main <dannys712.enwiki@gmail.com>
Date: Sat, 18 Apr 2020 17:27:13 -0700
Subject: [PATCH] [SECURITY] Do not leak user info via API
If a user is not allowed to see an account,
treat it the same as an account that doesn't
exist in terms of including any requested
information regarding edit count, user groups,
etc.
Bug: T250594
---
includes/api/ApiQueryGlobalUserInfo.php | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/includes/api/ApiQueryGlobalUserInfo.php b/includes/api/ApiQueryGlobalUserInfo.php
index 26f7966f..52316029 100644
--- a/includes/api/ApiQueryGlobalUserInfo.php
+++ b/includes/api/ApiQueryGlobalUserInfo.php
@@ -76,6 +76,10 @@ class ApiQueryGlobalUserInfo extends ApiQueryBase {
} else {
// The user doesn't exist or we pretend it doesn't if it's hidden
$data['missing'] = true;
+
+ // If we are pretending that the user doesn't exist because it is hidden,
+ // do not add any more information
+ $userExists = false;
}
$result->addValue( 'query', $this->getModuleName(), $data );
--
2.20.1.windows.1
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
8385740
Default Alt Text
T250594.patch (v.1) (1 KB)
Attached To
Mode
T250594: globaluserinfo api allows access to information about hidden users (CVE-2020-12051)
Attached
Detach File
Event Timeline
DannyS712
updated the name for this file from "
T250594.patch
" to "
T250594.patch (v.1)
".
Apr 20 2020, 9:05 AM
2020-04-20 09:05:10 (UTC+0)
Log In to Comment