CVE-2023-22475 Cross-Site Scripting in Canarytoken history

Medium 6.3 Published Updated

Attackers can execute JavaScript in the history page of triggered Canarytokens, potentially viewing or deleting tokens and exposing creator information.

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-2023-22475?

CVE-2023-22475 is a medium-severity cross-site scripting vulnerability in thinkst canarytokens, published on 6 Jan 2023. 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

Canarytokens is an open source tool which helps track activity and actions on your network. A Cross-Site Scripting vulnerability was identified in the history page of triggered Canarytokens prior to sha-fb61290. An attacker who discovers an HTTP-based Canarytoken (a URL) can use this to execute Javascript in the Canarytoken's trigger history page (domain: canarytokens.org) when the history page is later visited by the Canarytoken's creator.

This vulnerability could be used to disable or delete the affected Canarytoken, or view its activation history. It might also be used as a stepping stone towards revealing more information about the Canarytoken's creator to the attacker. For example, an attacker could recover the email address tied to the Canarytoken, or place Javascript on the history page that redirect the creator towards an attacker-controlled Canarytoken to show the creator's network location.

This vulnerability is similar to CVE-2022-31113, but affected parameters reported differently from the Canarytoken trigger request. An attacker could only act on the discovered Canarytoken. This issue did not expose other Canarytokens or other Canarytoken creators. Canarytokens Docker images sha-fb61290 and later contain a patch for this issue.

Weakness: CWE-79

Which versions are affected by CVE-2023-22475?

It affects 1 product.

Products include Thinkst Canarytokens.

How do I fix CVE-2023-22475?

No fix has been published for CVE-2023-22475 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-2023-22475 being exploited?

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

Sources

Is CVE-2023-22475 in your software?

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

Check your SBOMs for free