Bugtraq: AjaxExplorer v1.10.3.2 Remote CMD Execution / CSRF / Persistent XSS

[+] Credits: hyp3rlinx

[+] Website: hyp3rlinx.altervista.org

[+] Source: http://ift.tt/1P3TiQJ

TION.txt

[+] ISR: apparitionsec

Vendor:

==========

sourceforge.net

smsid

download linx:

http://ift.tt/1WwcIFH

Product:

=======================

AjaxExplorer v1.10.3.2

Manage server files through simple windows like interface.

Vulnerability Type:

=======================

Remote Command Execution

CSRF

Persistent XSS

CVE Reference:

==============

N/A

Vulnerability Details:

=====================

AjaxExplorer has command terminal feature where you can move, copy, delete files etc... also lets a user save commands in a

flat file named "terminal" under their user profile "/http://ift.tt/1O4p99b".

e.g.

copy [FILEPATH + FILENAME] [FILEPATH]

create [FILEPATH + FILENAME]

Since AjaxExplorer also suffers from CSRF vulnerability we can exploit the application by first creating an .htaccess file with an

"allow from all" directive to bypass access restrictions, next create arbitrary PHP files for remote command execution purposes.

This exploit will require two consecutive HTTP requests, so we need to target an iframe to stay on same page until exploit is completed.

Exploit code(s):

===============

1) first POST request creates .htaccess file so we can bypass directory browsing restrictions.

2) second POST writes our remote command execution file we will then access to execute commands on the victim system.

The below P:/ for "strPath" form value is for "Profile"

method="post">

method="post">

Now we can access and run arbitrary cmds.

http://localhost/AjaxExplorer%201.10.3.2/ajaxexplorer/ae.user/owner/mypr

ofile/terminal.php?cmd=c:\\Windows\\system32\\calc.exe

/////////////////////////////////////////////////////

Here is another way to RCE this application... first create PHP file then edit.

>

>

////////////////////////

Persistent XSS:

================

We can also write persistent XSS payload to the user profile "terminal" file.

>

Disclosure Timeline:

===============================

Vendor Notification: NA

June 1, 2016 : Public Disclosure

Exploitation Technique:

=======================

Remote

Severity Level:

================

8.0 (High)

CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N

[+] 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.

hyp3rlinx

[ reply ]


from SecurityFocus Vulnerabilities http://ift.tt/1O4ptF5