Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F60021162
T394393.patch
mszabo (Máté Szabó)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
mszabo
May 15 2025, 3:28 PM
2025-05-15 15:28:17 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
T394393.patch
View Options
From 87a1a0893cd9ae6ed0c71a65e34b7e00cdf53c11 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?M=C3=A1t=C3=A9=20Szab=C3=B3?= <mszabo@wikimedia.org>
Date: Thu, 15 May 2025 17:26:36 +0200
Subject: [PATCH] SECURITY: Escape messages in IPInfo infobox
Why:
- The global contributions integration CheckUser provides for IPInfo's
infobox is vulnerable to message key XSS.
What:
- Use mw.message( ... ).escaped() to escape the affected message before
using it in HTML construction.
Bug: T394393
Change-Id: I66221bae94cf222531a7dc5622b2d43e01f7f8eb
---
modules/ext.checkUser.ipInfo.hooks/infobox.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/ext.checkUser.ipInfo.hooks/infobox.js b/modules/ext.checkUser.ipInfo.hooks/infobox.js
index 067dce5e..1e0710ce 100644
--- a/modules/ext.checkUser.ipInfo.hooks/infobox.js
+++ b/modules/ext.checkUser.ipInfo.hooks/infobox.js
@@ -15,7 +15,7 @@ function addSpecialGlobalContributionsLink( $info, info, generateMarkup, target,
const $globalContributionsCount = $( '<span>' )
.addClass( 'ipinfo-widget-value-global-contributions' )
- .append( mw.msg( 'checkuser-ipinfo-global-contributions-value', globalContributionsCount ) );
+ .append( mw.message( 'checkuser-ipinfo-global-contributions-value', globalContributionsCount ).escaped() );
$globalContributions.append( $globalContributionsCount );
const globalContributionsUrl = mw.util.getUrl( 'Special:GlobalContributions', { target } );
const $globalContributionsLink = $( '<div>' )
--
2.49.0
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
20064104
Default Alt Text
T394393.patch (1 KB)
Attached To
Mode
T394393: CVE-2025-53482: IPInfo: Message key XSS through several IPInfo messages in infobox and popup
Attached
Detach File
Event Timeline
Log In to Comment