Cross-Site Request Forgery (CSRF) Protection Bypass Vulnerability in CodeIgniter4
Moderate severity
GitHub Reviewed
Published
Feb 26, 2022
in
codeigniter4/CodeIgniter4
•
Updated Feb 3, 2023
Description
Published by the National Vulnerability Database
Feb 28, 2022
Published to the GitHub Advisory Database
Mar 1, 2022
Reviewed
Mar 1, 2022
Last updated
Feb 3, 2023
Impact
This vulnerability might allow remote attackers to bypass the CodeIgniter4 CSRF protection mechanism.
Patches
Upgrade to v4.1.9 or later.
Workarounds
These are workarounds for this vulnerability, but you will still need to code as these after upgrading to v4.1.9.
Otherwise, the CSRF protection may be bypassed.
When Auto-Routing is Enabled
E.g.:
When Auto-Routing is Disabled
Do one of the following:
$routes->add()
, and use HTTP verbs in routes.E.g.:
References
For more information
If you have any questions or comments about this advisory:
References