? ? Pending

User tests: Successful: Unsuccessful:

avatar zero-24
zero-24
17 Feb 2021

Pull Request for an issue reported to the JSST by DangKhai from Viettel Cyber Security

Summary of Changes

Escape the private message to protect against xss. We do not apply any script filters to messages written by superadministartors. So a super admin could send a message with a script tag to an non super-admin.

Testing Instructions

set the editor plugin to "none"
Send (as super user) a message with a script tag in the body to another backend user
login as that other user
notice that the script tag is triggered
apply the patch
notice that the script tag is now escaped

Actual result BEFORE applying this Pull Request

the script tag is executed

Expected result AFTER applying this Pull Request

the script tag is escaped

Documentation Changes Required

None

avatar zero-24 zero-24 - open - 17 Feb 2021
avatar zero-24 zero-24 - change - 17 Feb 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 17 Feb 2021
Category Administration com_messages
avatar richard67 richard67 - test_item - 17 Feb 2021 - Tested successfully
avatar richard67
richard67 - comment - 17 Feb 2021

I have tested this item successfully on ad1c86e

Hint for other testers: set the editor plugin to "none" in testing instructions has to be done in your user settings.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32451.

avatar SharkyKZ SharkyKZ - test_item - 17 Feb 2021 - Tested unsuccessfully
avatar SharkyKZ
SharkyKZ - comment - 17 Feb 2021

I have tested this item 🔴 unsuccessfully on ad1c86e

Makes no sense.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32451.

avatar richard67
richard67 - comment - 17 Feb 2021

Makes no sense.

@SharkyKZ Why?

avatar brianteeman
brianteeman - comment - 17 Feb 2021

Because its a super admin "hacking" their own users and there are many ways a super admin could do that without blocking this vector

avatar richard67
richard67 - comment - 17 Feb 2021

Yes. I just would expect if someone gives a bad test result, he explains why.

avatar zero-24
zero-24 - comment - 17 Feb 2021

Because its a super admin "hacking" their own users and there are many ways a super admin could do that without blocking this vector

Yes thats the reason it is handled here and not as security issue. But escaping the output (like we do in many other places) should not harm here too given that this also mitigates this kind of issues.

avatar jwaisner jwaisner - test_item - 18 Feb 2021 - Tested successfully
avatar jwaisner
jwaisner - comment - 18 Feb 2021

I have tested this item successfully on ad1c86e


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32451.

avatar jwaisner jwaisner - alter_testresult - 18 Feb 2021 - SharkyKZ: Not tested
avatar jwaisner jwaisner - change - 18 Feb 2021
Status Pending Ready to Commit
avatar jwaisner
jwaisner - comment - 18 Feb 2021

Unset failed test as no results/reason provided.

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32451.

avatar SharkyKZ
SharkyKZ - comment - 18 Feb 2021

This should be closed, not set RTC 😒 .

avatar Fedik
Fedik - comment - 18 Feb 2021

But escaping the output (like we do in many other places) should not harm here too given that this also mitigates this kind of issues.

Actually it will harm formatted message (bold, italic, tables etc.), if there any 😉

avatar zero-24 zero-24 - change - 18 Feb 2021
The description was changed
avatar zero-24 zero-24 - edited - 18 Feb 2021
avatar wilsonge
wilsonge - comment - 20 Feb 2021

This is no different to the rest of the CMS right? This shouldn't be different to e.g. the article body?

avatar HLeithner
HLeithner - comment - 23 Feb 2021

Sorry a superadmin can modify any file on the server so the attack vector against another super user doesn't makes much sense, he/she can even change the password of the other super user.

Beside that we do exactly the same on "all" editor fields (super user has super power).

I'm closing this. Thanks for the effort.

avatar HLeithner HLeithner - change - 23 Feb 2021
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2021-02-23 18:38:50
Closed_By HLeithner
Labels Added: ? ?
avatar HLeithner HLeithner - close - 23 Feb 2021

Add a Comment

Login with GitHub to post a comment