Skip to content

AlphaWeb XE, the embedded web server running on AlphaCom XE, has a vulnerability which allows to upload PHP files leading to RCE once the authentication is successful - https://ricardojoserf.github.io/CVE-2021-40845/

Notifications You must be signed in to change notification settings

ricardojoserf/CVE-2021-40845

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

CVE-2021-40845

I. VULNERABILITY

AlphaWeb XE - Authenticated Insecure File Upload leading to RCE

II. CVE REFERENCE

CVE-2021-40845

III. VENDOR

https://www.zenitel.com/

IV. DESCRIPTION

The web part of Zenitel AlphaCom XE Audio Server through 11.2.3.10, called AlphaWeb XE, does not restrict file upload in the Custom Scripts section at php/index.php. Neither the content nor extension of the uploaded files is checked, allowing execution of PHP code under the /cmd/ directory.

V. EXPLOIT

python3 CVE-2021-40845.py -u $URL -c $COMMAND

poc

VI. VULNERABILITY DETAILS

To exploit this vulnerability, someone must authenticate in the server and access the "Scripts" button in the "Custom scripts" tab.

img1

Then, the button "Choose file" is clicked and the file is uploaded clicking "Upload".

img3

The PHP test file is a simple one-line reverse shell:

img2

The new file, with the same name, extension and content is listed in the Scripts page:

img4

The path of these files is /cmd/$FILE$. Knowing the path, as there is not any restriction the file upload functionality, uploading a PHP reverse shell or cmdshell allows to get Remote Code Execution in the server:

img5

VII. REFERENCES

https://wiki.zenitel.com/wiki/AlphaWeb

https://wiki.zenitel.com/wiki/AlphaWeb_Custom_Scripts

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-40845

About

AlphaWeb XE, the embedded web server running on AlphaCom XE, has a vulnerability which allows to upload PHP files leading to RCE once the authentication is successful - https://ricardojoserf.github.io/CVE-2021-40845/

Topics

Resources

Stars

Watchers

Forks

Sponsor this project

 

Languages