Exploit database

Vulnerability

CVE-2014-8998

Vulnerability details

Score
6.5
Severity
medium

CVSS 2.0 · NVD

Vector string

AV:N/AC:L/Au:S/C:P/I:P/A:P

Description

lib/message.php in X7 Chat 2.0.0 through 2.0.5.1 allows remote authenticated users to execute arbitrary PHP code via a crafted HTTP header to index.php, which is processed by the preg_replace function with the eval switch.

CVE Program

Exploit source choices

2 sources
X7 Chat 2.0.5 lib/message.php preg_replace() PHP Code Execution
MSF-multi--http--x7chat2_php_execMetasploitPHP / remote

This module exploits a post-auth vulnerability found in X7 Chat versions 2.0.0 up to 2.0.5.1. The vulnerable code exists on lib/message.php, which uses preg_replace() function with the /e modifier. This allows a remote authenticated attacker to execute arbitrary PHP code in the remote machine.

2014-10-27x7chat2_php_exec.rb