{"id":26277,"date":"2022-06-27T21:29:00","date_gmt":"2022-06-27T17:29:00","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/167595\/wpwdalil20-xss.txt"},"modified":"2022-07-13T11:15:59","modified_gmt":"2022-07-13T06:45:59","slug":"wordpress-w-dalil-2-0-cross-site-scripting","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/wordpress-w-dalil-2-0-cross-site-scripting\/","title":{"rendered":"WordPress W-DALIL 2.0 Cross Site Scripting"},"content":{"rendered":"<pre dir=\"ltr\"><code># Exploit Title: WordPress Plugin W-DALIL - Stored Cross Site Scripting\r\n# Date: 27-06-2022\r\n# Exploit Author: Mariam Tariq - HunterSherlock\r\n# Vendor Homepage: https:\/\/wordpress.org\/plugins\/w-dalil\/\r\n# Version: 2.0\r\n# Tested on: Firefox\r\n# Contact me: mariamtariq404@gmail.com<\/code><\/pre>\n<p>#Vulnerable Code:<\/p>\n<pre><code><\/code><\/pre>\n<p>&#8220;`<br \/>\n&lt;input class=&#8221;dalil_input&#8221; name=&#8221;dalil-address&#8221; type=&#8221;text&#8221;<br \/>\nplaceholder=&#8221;&lt;?php echo __(&#8216;Dalil item address&#8217;,&#8217;w-dalil&#8217;); ?&gt;&#8221;<br \/>\nvalue=&#8221;&lt;?php echo $dalil_information[&#8216;dalil-address&#8217;]; ?&gt;&#8221; \/&gt;<\/p>\n<pre><code><\/code><\/pre>\n<p>&#8220;`<\/p>\n<pre><code><\/code><\/pre>\n<p>#Steps To Reproduce :<\/p>\n<pre><code><\/code><\/pre>\n<p>1 &#8211; First Install the plugin &#8220;*w-dalil*&#8221; and activate it.<br \/>\n2 &#8211; Go to Dalil \u2014&gt; Add New Dalil item<br \/>\n3 &#8211; Inside the \u201c*Dalil item address*\u201d enter XSS payload \u201c*&gt;&lt;img src=x<br \/>\nonerror=alert(1)&gt;*&#8221; and hit enter.<\/p>\n<pre><code><\/code><\/pre>\n<p>#Poc Image :<\/p>\n<pre><code><\/code><\/pre>\n<blockquote class=\"imgur-embed-pub\" lang=\"en\" data-id=\"JPG97oh\"><p><a href=\"https:\/\/imgur.com\/JPG97oh\" target=\"_blank\" rel=\"noopener\">View post on imgur.com<\/a><\/p><\/blockquote>\n<p><script async src=\"\/\/s.imgur.com\/min\/embed.js\" charset=\"utf-8\"><\/script><\/p>\n<pre><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre><code><\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p># Exploit Title: WordPress Plugin W-DALIL &#8211; Stored Cross Site Scripting # Date: 27-06-2022 # Exploit Author: Mariam Tariq &#8211; HunterSherlock # Vendor Homepage: https:\/\/wordpress.org\/plugins\/w-dalil\/ # Version: 2.0 # Tested on: Firefox # Contact me: mariamtariq404@gmail.com #Vulnerable Code: &#8220;` &lt;input class=&#8221;dalil_input&#8221; name=&#8221;dalil-address&#8221; type=&#8221;text&#8221; placeholder=&#8221;&lt;?php echo __(&#8216;Dalil item address&#8217;,&#8217;w-dalil&#8217;); ?&gt;&#8221; value=&#8221;&lt;?php echo $dalil_information[&#8216;dalil-address&#8217;]; ?&gt;&#8221; \/&gt; &#8220;` &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-26277","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/26277","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=26277"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/26277\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=26277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=26277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=26277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}