HTML tags are interpreted in a topic change message
Categories
(Chat Core :: IRC, defect)
Tracking
(thunderbird_esr68 fixed)
Tracking | Status | |
---|---|---|
thunderbird_esr68 | --- | fixed |
People
(Reporter: dpb, Assigned: clokep)
References
Details
Attachments
(1 file, 1 obsolete file)
1017 bytes,
patch
|
clokep
:
review+
wsmwk
:
approval-comm-esr68+
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:71.0) Gecko/20100101 Firefox/71.0
Steps to reproduce:
Enter the command "/topic a <b> c" in an IRC channel where you have ops.
Actual results:
Thunderbird prints the following message:
SpecLad изменил тему на: a c. ("SpecLad changed the topic to: a c.")
The letter "c" is printed in bold.
The same display error happens with the topic message you get when you enter the channel.
Expected results:
The topic should be printed as-is, i.e.:
SpecLad изменил тему на: a <b> c.
Comment 1•4 years ago
|
||
The topic seems to be set correctly, it's only the system message displayed in the conversation that's incorrect.
Assignee | ||
Comment 3•3 years ago
|
||
We have two pieces of code:
ctcpFormatToText
: strips out the CTCP formatting of messages (and returns plain text).ctcpFormatToHTML
: converts the CTCP formatting into the appropriate HTML tags.
Both of these should have been FIRST escaping HTML in the input string, but ctcpFormatToText
was not doing this.
Comment 4•3 years ago
|
||
Comment on attachment 9143792 [details] [diff] [review] Patch v1 Review of attachment 9143792 [details] [diff] [review]: ----------------------------------------------------------------- LGTM.
Assignee | ||
Comment 5•3 years ago
|
||
I failed to include author info in my first patch. This is the same patch, including the previous review status.
Assignee | ||
Updated•3 years ago
|
Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/afa946f9ac2e
Do not interpret HTML tags in IRC topic messages. r=nhnt11
Updated•3 years ago
|
Assignee | ||
Comment 7•3 years ago
|
||
Comment on attachment 9145059 [details] [diff] [review] Patch with author [Approval Request Comment] Regression caused by (bug #): Not a regression. User impact if declined: If a declined a malicious actor can add HTML to a topic in an IRC conversation and show odd content. It shouldn't cause any security issues since the HTML should be cleaned, but is likely an abuse vector. Testing completed (on c-c, etc.): This has been out since 77 betas without any issues. Risk to taking this patch (and alternatives if risky): Topic messages might be broken for IRC.
Comment 8•3 years ago
|
||
Comment on attachment 9145059 [details] [diff] [review] Patch with author [Triage Comment] Thanks for the assessment. Approved for esr
Updated•3 years ago
|
Comment 9•3 years ago
|
||
bugherder uplift |
Thunderbird 68.8.1:
https://hg.mozilla.org/releases/comm-esr68/rev/af9a06ee0625
Description
•