WordPress Plugin Vulnerabilities

Groundhogg Contacts < 2.7.9.4 - Admin+ SQLi

Description

The plugin does not properly sanitise and escape a parameter before using it in a SQL statement, leading to a SQL injection exploitable by high privilege users such as admins

Proof of Concept

1. Login as a WordPress administrator or any of the custom roles from GroundHogg

2. Navigate to the URL: 
/wp-admin/admin.php?page=gh_contacts&orderby=first_name%2C+(CASE+WHEN+(SELECT+SLEEP(5)%3D1)+THEN+1+END)&order=asc

3. The web server will wait 5 seconds before responding indicating the sleep function is being run by the database.

Affects Plugins

Fixed in 2.7.9.4

References

Classification

Type
SQLI
OWASP top 10
CWE

Miscellaneous

Original Researcher
rSolutions Security Team
Submitter
rSolutions Security Team
Submitter website
Verified
Yes

Timeline

Publicly Published
2023-03-20 (about 1 years ago)
Added
2023-03-20 (about 1 years ago)
Last Updated
2023-03-20 (about 1 years ago)

Other