Cross-Site Request Forgery (CSRF) in thorsten/phpmyfaq
Reported on
Dec 29th 2021
Description
Hi there, another CSRF in clearing search items.
Proof of Concept
- Install a local instance of phpmyfaq.
- Go to this link
/phpmyfaq/admin/?action=truncatesearchterms
- See that all search terms are deleted.
Impact
This vulnerability is capable of CSRF.
Hi, this works only if you're logged in as admin with proper rights, right?
Hi there, yes that's true. In real attack scenario, the attacker would send the link to the admin and when they click it, all search terms are deleted.
That's true, but works only, if the admin is logged in. I'll fix it anyway.
This is the patch for the 3.0 branch, will be merged later to main:
https://github.com/thorsten/phpMyFAQ/commit/4310640935684486bed5edd5de211d8fa0d3372a