Lucene search

K
huntrHdvinnie724D3FD5-9F04-45C4-98D6-35A7D15468F5
HistoryNov 01, 2021 - 1:56 p.m.

Cross-Site Request Forgery (CSRF) in firefly-iii/firefly-iii

2021-11-0113:56:21
hdvinnie
www.huntr.dev
7

0.001 Low

EPSS

Percentile

31.2%

Description

Attacker is able to logout a user if a logged in user visits attacker website.

Impact

This vulnerability is capable of forging user to unintentional logout.

Test

Tested on Edge, firefox, chrome and safari.

Fix

You should use POST instead of GET/ANY.

To expand:

One way GET/ANY 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 users account it can be a great annoyance and is considered a valid CSRF.

0.001 Low

EPSS

Percentile

31.2%

Related for 724D3FD5-9F04-45C4-98D6-35A7D15468F5