CVE-2012-5368 phpMyAdmin Unsafe Fetching of Javascript Code

Medium 4.3 Published Updated

Man-in-the-middle attackers can inject malicious JavaScript into phpMyAdmin sessions via unencrypted HTTP requests, leading to cross-site scripting attacks.

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
Available

What is CVE-2012-5368?

CVE-2012-5368 is a medium-severity cross-site scripting vulnerability in Phpmyadmin Phpmyadmin, published on 25 Oct 2012. 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

phpMyAdmin 3.5.x before 3.5.3 uses JavaScript code that is obtained through an HTTP session to phpmyadmin.net without SSL, which allows man-in-the-middle attackers to conduct cross-site scripting (XSS) attacks by modifying this code.

Weakness: CWE-79

Which versions are affected by CVE-2012-5368?

2 open source packages ship an affected version, including phpmyadmin/phpmyadmin. It affects 1 product.

PackageAffectedFixed in
phpmyadmin/phpmyadmin PackagistFrom 3.53.5.3
phpmyadmin/phpmyadmin PackagistFrom 3.53.5.3

Products include Phpmyadmin Phpmyadmin.

How do I fix CVE-2012-5368?

Upgrade phpmyadmin/phpmyadmin to 3.5.3 or later.

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-2012-5368 being exploited?

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

All Phpmyadmin Phpmyadmin vulnerabilities

Sources

Also known as GHSA-xpxp-v33m-5jp9.

Is CVE-2012-5368 in your software?

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

Check your SBOMs for free