CVE-2021-41139 Reflected XSS vulnerability in time.php

High 8.1 Published Updated

Reflected XSS in Anuko Time Tracker allows attackers to execute malicious JavaScript in a logged-in user's browser via a crafted link.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2021-41139?

CVE-2021-41139 is a high-severity cross-site scripting vulnerability in anuko timetracker, published on 13 Oct 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

Anuko Time Tracker is an open source, web-based time tracking application written in PHP. When a logged on user selects a date in Time Tracker, it is being passed on via the date parameter in URI. Because of not checking this parameter for sanity in versions prior to 1.19.30.5600, it was possible to craft the URI with malicious JavaScript, use social engineering to convince logged on user to click on such link, and have the attacker-supplied JavaScript to be executed in user's browser. This issue is patched in version 1.19.30.5600. As a workaround, one may introduce `ttValidDbDateFormatDate` function as in the latest version and add a call to it within the access checks block in time.php.

Weakness: CWE-79

Which versions are affected by CVE-2021-41139?

It affects 1 product.

Products include Anuko Time Tracker.

How do I fix CVE-2021-41139?

No fix has been published for CVE-2021-41139 yet. Limit exposure of the affected software until one is available.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2021-41139 being exploited?

There is no known exploitation of CVE-2021-41139 in the wild and no public exploit code.

Sources

Is CVE-2021-41139 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free