# CVE-2022-29710 - LimeSurvey - XSS with plugin upload in uploadConfirm.php

Podalirius · 2022-05-25

<https://podalirius.net/fr/cves/2022-29710/>

LimeSurvey v5.3.9 et versions antérieures permettent aux attaquants d'inclure du code javascript ou HTML dans le fichier config.xml d'un plugin.

- **Titre**  : LimeSurvey - XSS with plugin upload in uploadConfirm.php
- **Auteur** : [@podalirius_](https://twitter.com/podalirius_)
- **CVSS**   : 7.5 (High)
- **CVSS Vector** : `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## Summary

A cross-site scripting (XSS) vulnerability in `application/views/admin/pluginmanager/uploadConfirm.php` of LimeSurvey v5.3.9 and below allows attackers to include javascript or HTML code in the config.xml file of a plugin.

## Affected products and versions

LimeSurvey v5.3.9 and below

## Exploitation

To exploit this vulnerability, a remote attacker need to create a malicious plugin that will trigger a XSS in the `application/views/admin/pluginmanager/uploadConfirm.php` page when installed on the LimeSurvey.

If we upload this plugin with html code embedded inside the `config.xml` variables, it will be reflected on the `application/views/admin/pluginmanager/uploadConfirm.php` page without being filtered, as we can see here:

![](<https://podalirius.net/fr/cves/2022-29710/alert_popup.png>)

## Expected behavior

These values should be filtered with [htmlentities](https://www.php.net/manual/en/function.htmlentities.php) before being reflected on the web page, resulting in the following output:

![](<https://podalirius.net/fr/cves/2022-29710/expected_behavior.png>)

## Mitigations

Update LimeSurvey to ...

## References
 - https://github.com/LimeSurvey/LimeSurvey
