Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F65758960
T402076.patch
SomeRandomDeveloper
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
SomeRandomDeveloper
Aug 16 2025, 9:19 AM
2025-08-16 09:19:04 (UTC+0)
Size
2 KB
Referenced Files
None
Subscribers
None
T402076.patch
View Options
From 7e4fe439d0e466e3e1ecaff961eb37aa407836ae Mon Sep 17 00:00:00 2001
From: SomeRandomDeveloper <thisisnotmyname275@gmail.com>
Date: Sat, 16 Aug 2025 11:17:55 +0200
Subject: [PATCH] SECURITY: Parse message instead of inserting it as HTML
This fixes a stored i18n XSS vulnerability.
Bug: T402076
Change-Id: Iad040d324ca70a187b90f32236a7269e385996b6
---
i18n/en.json | 2 +-
.../translation/pages/SelectSourcePage.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/i18n/en.json b/i18n/en.json
index abcd8973..28b6a45c 100644
--- a/i18n/en.json
+++ b/i18n/en.json
@@ -360,7 +360,7 @@
"securepoll-translation-result-description": "Imported translations from",
"securepoll-translation-import-start": "Start importing",
"securepoll-translation-select-import-source": "Select page from $1",
- "securepoll-translation-select-import-source-api": "Provide the <a href=\"https://www.mediawiki.org/wiki/API:Main_page\" target=\"_blank\" rel=\"noopener noreferrer\">MediaWiki Action API</a> source:",
+ "securepoll-translation-select-import-source-api": "Provide the [https://www.mediawiki.org/wiki/API:Main_page MediaWiki Action API] source:",
"securepoll-translation-select-import-source-page": "Provide the page title from the source above:",
"securepoll-translation-import-dialog-title": "Import translations",
"securepoll-translation-import-action-import": "Import",
diff --git a/modules/ext.securepoll.htmlform/translation/pages/SelectSourcePage.js b/modules/ext.securepoll.htmlform/translation/pages/SelectSourcePage.js
index 739c7ef8..38f08f3f 100644
--- a/modules/ext.securepoll.htmlform/translation/pages/SelectSourcePage.js
+++ b/modules/ext.securepoll.htmlform/translation/pages/SelectSourcePage.js
@@ -9,7 +9,7 @@ function SelectSourcePage( name, cfg ) {
label: new OO.ui.HtmlSnippet(
mw.message(
'securepoll-translation-select-import-source-api'
- ).plain()
+ ).parse()
)
} );
this.sourceInput = new OO.ui.TextInputWidget( {
--
2.50.1
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
21665224
Default Alt Text
T402076.patch (2 KB)
Attached To
Mode
T402076: CVE-2025-11937: Stored XSS through a system message in SecurePoll
Attached
Detach File
Event Timeline
Log In to Comment