Lucene search
K

PHP Melody 2.7.3 - Multiple Vulnerabilities

🗓️ 09 Oct 2017 00:00:00Reported by SecuriTeamType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 56 Views

PHP Melody 2.7.3 - Multiple Vulnerabilities, Stored XSS, SQL Injectio

Related
Code
ReporterTitlePublishedViews
Family
CNVD
PHPSUGAR PHP Melody SQL Injection Vulnerability (CNVD-2017-32539)
27 Oct 201700:00
cnvd
CNVD
PHPSUGAR PHP Melody SQL Injection Vulnerability (CNVD-2017-32540)
27 Oct 201700:00
cnvd
CVE
CVE-2017-15578
18 Oct 201702:00
cve
CVE
CVE-2017-15579
18 Oct 201702:00
cve
Cvelist
CVE-2017-15578
18 Oct 201702:00
cvelist
Cvelist
CVE-2017-15579
18 Oct 201702:00
cvelist
EUVD
EUVD-2017-7030
7 Oct 202500:30
euvd
EUVD
EUVD-2017-7031
7 Oct 202500:30
euvd
exploitpack
PHP Melody 2.7.3 - Multiple Vulnerabilities
9 Oct 201700:00
exploitpack
NVD
CVE-2017-15578
18 Oct 201702:29
nvd
Rows per page
## Vulnerabilities Summary
The following advisory describes three (3) vulnerabilities found in PHP Melody version 2.7.3.

PHP Melody is a “self-hosted Video CMS which evolved over the last 9 years. SEO optimization, unbeaten security and speed are advantages you no longer have to compromise on.
A truly great CMS should help you save time and make your life easier not complicate it. Nobody enjoys spending time and money on inferior solutions. If you value your time, don’t settle for anything but the best video CMS with a proven track record, constant support and updates.”

The vulnerabilities found in PHP Melody are:

Stored PreAuth XSS that leads to administrator account takeover
SQL Injection (1)
SQL Injection (2)
Credit
An independent security researcher, Paulos Yibelo, has reported this vulnerability to Beyond Security’s SecuriTeam Secure Disclosure program.

## Vendor response
PHP Melody has released patches to address this vulnerability.

For more information: http://www.phpsugar.com/blog/2017/10/php-melody-v2-7-3-maintenance-release/

CVE: CVE-2017-15578, CVE-2017-15579

## Vulnerabilities details

Stored PreAuth XSS that leads to administrator account takeover
User controlled input is not sufficiently sanitized, such that by sending a POST request to page_manager.php with the following parameters (vulnerable parameter – page_title)


```
page_manager.php?do=new&id=&author=&showinmenu=0&[email protected]&status=0&submit=Publish&page_name=Peter+Winter&page_title=408b7<script>alert(1)<%2fscript>f2faf
```

An attacker can trigger the vulnerability and when administrator/moderator/editor or anyone with privileges visits Admin access /admin/pages.php?page=1 the payload is triggered and the alert is executed.


SQL Injection (1)
User controlled input is not sufficiently sanitized, by sending a POST request to /phpmelody/admin/edit_category.php with the following parameters:


```
category=3&[email protected]&tag=categoryone&save=Save$name=Sample+Category+%231&image='&[email protected]
```

The vulnerable parameter is the POST “image” parameter. We can send a single quote (‘) to verify and the server will respond with an SQL error. We can inject SQL Queries here or extract data.

This attack requires an admin/modernator or editor to visit a malicious website that will submit the form with a malicious “image” parameter as an Injection


SQL Injection (2)
SQL Injection is on a cookie-value and can be exploited without any user interaction.

The cookie value “aa_pages_per_page” is the vulnerable parameter and we can use time based SQL Injection techniques to verify,

The payload we used ‘ AND benchmark(20000000%2csha1(1))—makes the server sleep for a long time (5-20 seconds).

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation