CVE-2023-47314 – Headwind MDM Web panel 5.22.1 – XSS via Uncontrolled File Upload

Published CVE numbers:

 

Headwind MDM Web panel 5.22.1 is vulnerable to cross-site scripting (XSS).

The file upload function allows APK and arbitrary files to be uploaded. By exploiting this issue, attackers may upload HTML files and share the download URL pointing to these files with the victims. As the file download function returns the file in inline mode, the victim’s browser will immediately render the content of the HTML file as a web page. As a result, the uploaded client-side code will be evaluated and executed in the victim’s browser, allowing attackers to perform common XSS attacks.

Exploitation’s steps

Authentication: Required (a low-level access is enough)

  • Due to the vulnerability CVE-2023-47316, even low-level users can access the tab Files

  • Uploading an HTML file with arbitrary content by using the add file function under the tab Files

Uploading a HTML file using the Add file function
Uploading an HTML file using the Add file function
Uploading a HTML file
Uploading an HTML file
   
HTML file can be rendered
HTML file can be rendered
  • The above URL is accessible even for unauthenticated users