1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
iScripts ReserveLogic 1.0 SQL Injection Vulnerability NameiScripts ReserveLogic Vendorhttp://www.iscripts.com Versions Affected 1.0 AuthorSalvatore Fresta aka Drosophila Website http://www.salvatorefresta.net Contact salvatorefresta [at] gmail [dot] com Date2010-01-07 X. INDEX I.ABOUT THE APPLICATION II. DESCRIPTION III.ANALYSIS IV. SAMPLE CODE V.FIX I. ABOUT THE APPLICATION iScriptsReserveLogicallowsindependenthotel/motels, B&B,time-shares,campgrounds,tour companies, etc., to taketheirbusiness truly online with online reservation and customer management. II. DESCRIPTION Anumericfieldisnot properly sanitised before being used in a SQL query. III. ANALYSIS Summary: A) SQL Injection A) SQL Injection Thepidparameter in packagedetails.php isnot properly sanitisedbeforebeingusedin a SQL query. Successful exploitationrequiresthatthepid value exists in the database, or rather that is a real package id. IV. SAMPLE CODE A) SQL Injection http://site/path/packagedetails.php?pid=1 UNION SELECT 1,2,3,4,5,6,7,8,9,10,11,12%23 V. FIX No Fix. |