Headline
CVE-2023-40176: Allow to set the timezone in the wiki preferences and the user profile
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Any registered user can exploit a stored XSS through their user profile by setting the payload as the value of the time zone user preference. Even though the time zone is selected from a drop down (no free text value) it can still be set from JavaScript (using the browser developer tools) or by calling the save URL on the user profile with the right query string. Once the time zone is set it is displayed without escaping which means the payload gets executed for any user that visits the malicious user profile, allowing the attacker to steal information and even gain more access rights (escalation to programming rights). This issue is present since version 4.1M2 when the time zone user preference was introduced. The issue has been fixed in XWiki 14.10.5 and 15.1RC1.
Log inSkip to main contentSkip to sidebar
Dashboards
Projects
Issues
Give feedback to Atlassian
Help
- Jira Core help
- Keyboard Shortcuts
- About Jira
- Jira Credits
Log In
- XWiki Platform
- XWIKI-7847
Log In
Closed
Export
XMLWordPrintable
Details
**Type: ** New Feature
Resolution: Fixed
**Priority: ** Major
Fix Version/s: 4.1-milestone-2
Affects Version/s: 4.1-milestone-1
Component/s: Administration, User - User Profile
Labels:
- usability
Difficulty:
Unknown
Documentation:
http://extensions.xwiki.org/xwiki/bin/view/Extension/User+Application
Documentation in Release Notes:
http://www.xwiki.org/xwiki/bin/view/ReleaseNotes/ReleaseNotesXWikiEnterprise41M2
Similar issues:
Attachments
Issue Links
causes
XWIKI-20276 Stored XSS via the timezone displayer in user profile
- Closed
relates to
XWIKI-5949 Better handling of different timezones for date properties
- Open
Activity
People
Assignee:
Jean-Vincent Drean
Reporter:
Jean-Vincent Drean
Votes:
0 Vote for this issue
Watchers:
0 Start watching this issue
Dates
Created:
22/May/12 18:28
Updated:
06/Feb/23 11:13
Resolved:
22/May/12 18:58
Related news
### Impact Any registered user can exploit a stored XSS through their user profile by setting the payload as the value of the time zone user preference. Even though the time zone is selected from a drop down (no free text value) it can still be set from JavaScript (using the browser developer tools) or by calling the save URL on the user profile with the right query string. Once the time zone is set it is displayed without escaping which means the payload gets executed for any user that visits the malicious user profile, allowing the attacker to steal information and even gain more access rights (escalation to programming rights). The problem is present [since version 4.1M2](https://jira.xwiki.org/browse/XWIKI-7847) when the time zone user preference was introduced. ### Patches The issue has been fixed in XWiki 14.10.5 and 15.1RC1 by https://github.com/xwiki/xwiki-platform/commit/d11ca5d781f8a42a85bc98eb82306c1431e764d4 . The main fix is in the [``displayer_timezone.vm``](https://g...