Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F37852732
0001-Prevent-pagetriage-tags-quickfilter-label-from-causi.patch
Soda (Sohom Datta)
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
Soda
Sep 29 2023, 1:49 PM
2023-09-29 13:49:39 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
0001-Prevent-pagetriage-tags-quickfilter-label-from-causi.patch
View Options
From 9aa4a9cb599ae272186b71da593c0f3e184f6773 Mon Sep 17 00:00:00 2001
From: Sohom <sohomdatta1+git@gmail.com>
Date: Fri, 29 Sep 2023 15:47:53 +0200
Subject: [PATCH] Prevent `pagetriage-tags-quickfilter-label` from causing XSS
Bug: T347704
Change-Id: I0aa51ec486001fe136fc0b5364d456c2b48d94da
---
modules/ext.pageTriage.views.toolbar/ToolView.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/modules/ext.pageTriage.views.toolbar/ToolView.js b/modules/ext.pageTriage.views.toolbar/ToolView.js
index f2544fec..4514c66c 100644
--- a/modules/ext.pageTriage.views.toolbar/ToolView.js
+++ b/modules/ext.pageTriage.views.toolbar/ToolView.js
@@ -282,7 +282,9 @@ module.exports = Backbone.View.extend( {
return $( '<div>' ).attr( 'id', this.id + '-search' )
.addClass( 'mwe-pt-tag-quicksearch' )
.append(
- mw.msg( 'pagetriage-tags-quickfilter-label' ) + ' ',
+ $( '<label>' )
+ .text( mw.msg( 'pagetriage-tags-quickfilter-label' ) )
+ .attr( 'for', this.id + '-search-text' ),
$( '<input>' )
.attr( { id: this.id + '-search-text',
type: 'text' } )
--
2.42.0
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
11512603
Default Alt Text
0001-Prevent-pagetriage-tags-quickfilter-label-from-causi.patch (1 KB)
Attached To
Mode
T347704: CVE-2024-23174: XSS in `pagetriage-tags-quickfilter-label` PageTriage
Attached
Detach File
Event Timeline
Log In to Comment