PHPShell v2.4 Cross Site Scripting

fulldisclosure logo
Full Disclosure
mailing list archives

PHPShell v2.4 Cross Site Scripting

From: hyp3rlinx <apparitionsec () gmail com>

Date: Sat, 18 Feb 2017 20:01:45 -0500

[+] Credits: John Page AKA hyp3rlinx
[+] Website:
[+] Source:
[+] ISR: ApparitionSec


PHPShell v2.4

Vulnerability Type:
Cross Site Scripting

CVE Reference:

Security Issue:
Multiple cross site scripting entry points exist in PHPShell undermining
the integrity between users browser and server.
Allowing remote attackers to bypass access controls such as the same-origin
policy. If an authenticated user clicks an attacker
supplied link.

XSS issue is made possible because PHPShell calls print
$_SERVER['PHP_SELF'] on the main HTML form. Since PHP_SELF references URL,
PHPShell simply reads our XSS payload in the URL and echoes it back to

<form name="shell" enctype="multipart/form-data" action="<?php
print($_SERVER['PHP_SELF']) ?>" method="post">

Since PHPShell purpose is to execute system commands this XSS vulnerability
can potentially become a 'Remote Command Execution'
vulnerability. Moreover, this XSS issue can also potentially leverage a
Session Fixation vulnerability also present in PHPShell.


Tested successfully in Firefox


XSS 1)


OR Inject IFRAME to phish and steal credentials, you get the idea.


XSS 2) http://VICTIM-IP/phpshell-2.4/phpshell.php

On the Login Authentication HTML form 'username' input field

" onMousemove="alert(document.cookie)

enter a password and hit Enter.

Network Access:


Disclosure Timeline:
Vendor Notification: No reply
In addition the INSTALL file "Bugs?  Comments?" Tracker System link is HTTP
February 18, 2017 : Public Disclosure

[+] Disclaimer
The information contained within this advisory is supplied "as-is" with no
warranties or guarantees of fitness of use or otherwise.
Permission is hereby granted for the redistribution of this advisory,
provided that it is not altered except by reformatting it, and
that due credit is given. Permission is explicitly given for insertion in
vulnerability databases and similar, provided that due credit
is given to the author. The author is not responsible for any misuse of the
information contained herein and accepts no responsibility
for any damage caused by the use or misuse of this information. The author
prohibits any malicious use of security related information
or exploits by the author or elsewhere.


Sent through the Full Disclosure mailing list
Web Archives & RSS:

  By Date  
  By Thread  

Current thread:

  • PHPShell v2.4 Cross Site Scripting hyp3rlinx (Feb 21)

Source: Full Disclosure @ February 21, 2017 at 12:50PM