CVE-2022-24707 SQL injection in anuko timetracker

High 7.4 Published Updated

Attackers can execute arbitrary SQL commands via unsanitized date parameters in POST requests, potentially reading or modifying database contents.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2022-24707?

CVE-2022-24707 is a high-severity SQL injection vulnerability in anuko timetracker, published on 23 Feb 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Anuko Time Tracker is an open source, web-based time tracking application written in PHP. UNION SQL injection and time-based blind injection vulnerabilities existed in Time Tracker Puncher plugin in versions of anuko timetracker prior to 1.20.0.5642. This was happening because the Puncher plugin was reusing code from other places and was relying on an unsanitized date parameter in POST requests. Because the parameter was not checked, it was possible to craft POST requests with malicious SQL for Time Tracker database. This issue has been resolved in in version 1.20.0.5642. Users unable to upgrade are advised to add their own checks to input.

Weakness: CWE-89

Which versions are affected by CVE-2022-24707?

It affects 1 product.

Products include Anuko Time Tracker.

How do I fix CVE-2022-24707?

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

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2022-24707 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-24707 exists.

Public exploit code: 1 Exploit-DB entry and 3 proofs of concept on GitHub.

Sources

Also known as GHSA-wqx7-95fx-wjxj.

Is CVE-2022-24707 in your software?

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

Check your SBOMs for free