CVE-2022-0169 Photo Gallery by 10Web < 1.6.0 - Unauthenticated SQL Injection

Critical 9.8 Published Updated

Unauthenticated attackers can inject SQL commands via the bwg_tag_id_bwg_thumbnails_0 parameter in the Photo Gallery by 10Web plugin.

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

What is CVE-2022-0169?

CVE-2022-0169 is a critical SQL injection vulnerability in Unknown Photo Gallery by 10Web – Mobile-Friendly Image Gallery, published on 14 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The Photo Gallery by 10Web WordPress plugin before 1.6.0 does not validate and escape the bwg_tag_id_bwg_thumbnails_0 parameter before using it in a SQL statement via the bwg_frontend_data AJAX action (available to unauthenticated and authenticated users), leading to an unauthenticated SQL injection

Weakness: CWE-89

Which versions are affected by CVE-2022-0169?

It affects 1 product.

Products include 10web Photo Gallery.

How do I fix CVE-2022-0169?

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

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

Public exploit code: 1 Metasploit module, 1 Nuclei template and 1 proofs of concept on GitHub.

Sources

Also known as GHSA-3hxm-xw7j-7rgj.

Is CVE-2022-0169 in your software?

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

Check your SBOMs for free