{"id":293,"date":"2021-05-31T15:27:36","date_gmt":"2021-05-31T09:57:36","guid":{"rendered":"https:\/\/ganofins.com\/blog\/?p=293"},"modified":"2021-05-31T15:27:38","modified_gmt":"2021-05-31T09:57:38","slug":"my-first-cve-2021-24176","status":"publish","type":"post","link":"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/","title":{"rendered":"My First CVE-2021-24176"},"content":{"rendered":"\n<p>Hello everyone,<\/p>\n\n\n\n<p>A while back, when I was hunting on a private program on HackerOne. Let&#8217;s call it <strong>redacted.com<\/strong>. I saw it was using WordPress CMS at <strong>redacted.com\/blog\/<\/strong><\/p>\n\n\n\n<p>I performed <a href=\"https:\/\/github.com\/ffuf\/ffuf\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">ffuf<\/a> scan with my custom WordPress plugin wordlist and found some interesting plugins. One of which was <a href=\"https:\/\/wordpress.org\/plugins\/jh-404-logger\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">JH 404 <\/a><a href=\"https:\/\/wordpress.org\/plugins\/jh-404-logger\/\" target=\"_blank\" rel=\"noreferrer noopener\">Logger<\/a> plugin. Being a PHP enthusiast, I quickly downloaded WordPress and extracted it to my Apache httpd server directory, and started the server. Then I installed the JH 404 Logger plugin on it.<\/p>\n\n\n\n<p>Then I checked what it really does and what are its functionalities. It is a simple plugin to record the visits at 404 URLs with their paths and counts and displays that on the WordPress dashboard but the catch is, it doesn&#8217;t sanitize the path of 404 URL which I found by reviewing the source code of the plugin.<br>So, I immediately created a 404 URL with the payload &#8211;<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:\/\/localhost\/blog\/non_existing_path'\">&lt;img src=qw.jpg onerror=alert(0)>'<\/code><\/pre>\n\n\n\n<p>Quickly created a report and sent it to that private program. But guess what, they marked it as Informative. Cause it wasn&#8217;t in their scope. But it was never mentioned in their scope that redacted.com\/blog is not in scope. They only mentioned blog.redacted.com is not in-scope in their policy.<br>I tried explaining even though redacted.com\/blog is not in scope, but still, this vulnerability impacts the main domain <strong>redacted.com<\/strong> which is in-scope. As because of this vulnerability in this plugin an attacker can perform stored XSS and they weren&#8217;t even using <em><strong>httponly<\/strong><\/em> flag on their auth cookie. It can allow an attacker to steal the victim&#8217;s cookie or execute any arbitrary Javascript code. But they kept denying this and never accepted it and guess what they are still using this plugin at <strong>redacted.com\/blog<\/strong><\/p>\n\n\n\n<p>Moving ahead then I thought to report it to the developer of this plugin. But he never responded back to me even after several tries. So then, I reported it to the WordPress team but they said due to a high number of reports every day I won&#8217;t receive any further communication regarding this. Then I reported this vulnerability to <a href=\"https:\/\/wpscan.com\/\">wpscan<\/a> and in no time they verified and assigned a CVE id <a href=\"https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2021-24176\" target=\"_blank\" rel=\"noreferrer noopener\">CVE-2021-24176<\/a> to it.<\/p>\n\n\n\n<p>That&#8217;s how I got my first CVE.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"JH 404 Logger Stored XSS POC | CVE-2021-24176\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/IYQfkYai6pI?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><figcaption><strong>CVE-2021-24176 POC<\/strong><\/figcaption><\/figure>\n\n\n\n<p>Thanks for reading \ud83d\ude42<br>Lemme know in the comments if you&#8217;re interesting to know how I got my 2nd CVE id.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello everyone, A while back, when I was hunting on a private program on HackerOne. Let&#8217;s call it redacted.com. I saw it was using WordPress CMS at redacted.com\/blog\/ I performed ffuf scan with my custom WordPress plugin wordlist and found&#8230;<\/p>\n","protected":false},"author":1,"featured_media":297,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[59],"tags":[53,60,13,61,58,62],"class_list":["post-293","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-writeups","tag-cve","tag-cve-2021-24176","tag-ganofins","tag-ganofins-cve","tag-ganofins-exploits","tag-ganofins-writeups"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>My First CVE-2021-24176 - Ganofins Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"My First CVE-2021-24176 - Ganofins Blog\" \/>\n<meta property=\"og:description\" content=\"Hello everyone, A while back, when I was hunting on a private program on HackerOne. Let&#8217;s call it redacted.com. I saw it was using WordPress CMS at redacted.com\/blog\/ I performed ffuf scan with my custom WordPress plugin wordlist and found...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/\" \/>\n<meta property=\"og:site_name\" content=\"Ganofins Blog\" \/>\n<meta property=\"article:published_time\" content=\"2021-05-31T09:57:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-05-31T09:57:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2021\/05\/jh_logger_xss.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"ganofins\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"ganofins\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/\"},\"author\":{\"name\":\"ganofins\",\"@id\":\"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db\"},\"headline\":\"My First CVE-2021-24176\",\"datePublished\":\"2021-05-31T09:57:36+00:00\",\"dateModified\":\"2021-05-31T09:57:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/\"},\"wordCount\":409,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db\"},\"image\":{\"@id\":\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2021\/05\/jh_logger_xss.png\",\"keywords\":[\"cve\",\"cve-2021-24176\",\"ganofins\",\"ganofins cve\",\"ganofins exploits\",\"ganofins writeups\"],\"articleSection\":[\"Writeups\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/\",\"url\":\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/\",\"name\":\"My First CVE-2021-24176 - Ganofins Blog\",\"isPartOf\":{\"@id\":\"https:\/\/ganofins.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2021\/05\/jh_logger_xss.png\",\"datePublished\":\"2021-05-31T09:57:36+00:00\",\"dateModified\":\"2021-05-31T09:57:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#primaryimage\",\"url\":\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2021\/05\/jh_logger_xss.png\",\"contentUrl\":\"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2021\/05\/jh_logger_xss.png\",\"width\":1920,\"height\":1080,\"caption\":\"JH 404 Logger Plugin Stored XSS\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ganofins.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"My First CVE-2021-24176\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ganofins.com\/blog\/#website\",\"url\":\"https:\/\/ganofins.com\/blog\/\",\"name\":\"Ganofins Blog\",\"description\":\"Learn Today Apply Today\",\"publisher\":{\"@id\":\"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ganofins.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db\",\"name\":\"ganofins\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ganofins.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/ganofins.com\/blog\/wp-content\/litespeed\/avatar\/a1fd68d9e27b63b4007d850d5d958b59.jpg?ver=1776081109\",\"contentUrl\":\"https:\/\/ganofins.com\/blog\/wp-content\/litespeed\/avatar\/a1fd68d9e27b63b4007d850d5d958b59.jpg?ver=1776081109\",\"caption\":\"ganofins\"},\"logo\":{\"@id\":\"https:\/\/ganofins.com\/blog\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"My First CVE-2021-24176 - Ganofins Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/","og_locale":"en_US","og_type":"article","og_title":"My First CVE-2021-24176 - Ganofins Blog","og_description":"Hello everyone, A while back, when I was hunting on a private program on HackerOne. Let&#8217;s call it redacted.com. I saw it was using WordPress CMS at redacted.com\/blog\/ I performed ffuf scan with my custom WordPress plugin wordlist and found...","og_url":"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/","og_site_name":"Ganofins Blog","article_published_time":"2021-05-31T09:57:36+00:00","article_modified_time":"2021-05-31T09:57:38+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2021\/05\/jh_logger_xss.png","type":"image\/png"}],"author":"ganofins","twitter_card":"summary_large_image","twitter_misc":{"Written by":"ganofins","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#article","isPartOf":{"@id":"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/"},"author":{"name":"ganofins","@id":"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db"},"headline":"My First CVE-2021-24176","datePublished":"2021-05-31T09:57:36+00:00","dateModified":"2021-05-31T09:57:38+00:00","mainEntityOfPage":{"@id":"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/"},"wordCount":409,"commentCount":0,"publisher":{"@id":"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db"},"image":{"@id":"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#primaryimage"},"thumbnailUrl":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2021\/05\/jh_logger_xss.png","keywords":["cve","cve-2021-24176","ganofins","ganofins cve","ganofins exploits","ganofins writeups"],"articleSection":["Writeups"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/","url":"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/","name":"My First CVE-2021-24176 - Ganofins Blog","isPartOf":{"@id":"https:\/\/ganofins.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#primaryimage"},"image":{"@id":"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#primaryimage"},"thumbnailUrl":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2021\/05\/jh_logger_xss.png","datePublished":"2021-05-31T09:57:36+00:00","dateModified":"2021-05-31T09:57:38+00:00","breadcrumb":{"@id":"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#primaryimage","url":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2021\/05\/jh_logger_xss.png","contentUrl":"https:\/\/ganofins.com\/blog\/wp-content\/uploads\/2021\/05\/jh_logger_xss.png","width":1920,"height":1080,"caption":"JH 404 Logger Plugin Stored XSS"},{"@type":"BreadcrumbList","@id":"https:\/\/ganofins.com\/blog\/my-first-cve-2021-24176\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ganofins.com\/blog\/"},{"@type":"ListItem","position":2,"name":"My First CVE-2021-24176"}]},{"@type":"WebSite","@id":"https:\/\/ganofins.com\/blog\/#website","url":"https:\/\/ganofins.com\/blog\/","name":"Ganofins Blog","description":"Learn Today Apply Today","publisher":{"@id":"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ganofins.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/ganofins.com\/blog\/#\/schema\/person\/ce75d64682bcbf85acac97c9cb93a8db","name":"ganofins","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ganofins.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/ganofins.com\/blog\/wp-content\/litespeed\/avatar\/a1fd68d9e27b63b4007d850d5d958b59.jpg?ver=1776081109","contentUrl":"https:\/\/ganofins.com\/blog\/wp-content\/litespeed\/avatar\/a1fd68d9e27b63b4007d850d5d958b59.jpg?ver=1776081109","caption":"ganofins"},"logo":{"@id":"https:\/\/ganofins.com\/blog\/#\/schema\/person\/image\/"}}]}},"amp_enabled":true,"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/posts\/293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/comments?post=293"}],"version-history":[{"count":6,"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/posts\/293\/revisions"}],"predecessor-version":[{"id":301,"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/posts\/293\/revisions\/301"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/media\/297"}],"wp:attachment":[{"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/media?parent=293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/categories?post=293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ganofins.com\/blog\/wp-json\/wp\/v2\/tags?post=293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}