CVE-2020-16629 SQL injection in n/a
Attackers can exploit SQL injection to write PHP files via attachment replacement, leading to remote code execution on PhpOK CMS installations.
- 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-2020-16629?
CVE-2020-16629 is a critical SQL injection vulnerability in n/a, published on 8 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
PhpOK 5.4.137 contains a SQL injection vulnerability that can inject an attachment data through SQL, and then call the attachment replacement function through api.php to write a PHP file to the target path.
Weakness: CWE-89
Which versions are affected by CVE-2020-16629?
It affects 1 product.
Products include Phpok Phpok.
How do I fix CVE-2020-16629?
No fix has been published for CVE-2020-16629 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-2020-16629 being exploited?
There is no known exploitation of CVE-2020-16629 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-r4gr-8frm-x929.