WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact
WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact

WordPress Plugin Vulnerabilities

WPSchoolPress < 2.1.10 - Multiple Authenticated SQL Injections

Description

The plugin does not properly sanitize or use prepared statements before using POST variable in SQL queries, leading to SQL injection in multiple actions available to various authenticated users, from simple subscribers/students to teachers and above.

Proof of Concept

In action "sendSubMessage", The plugin did not properly sanitize and escape the $main_m_id variable which is retrieved from $_POST['main_m_id'] this action can be targeted by any authenticated user.
In action "UpdateStudent", The plugin did not properly sanitize and escape the $id variable which is retrieved from $_POST['Class'] this action can be targeted by any authenticated  user.
In action "getstudentdate", The plugin did not properly sanitize and escape the $catid variable which is retrieved from $_POST['data'] this action can be targeted by any authenticated  user.
In action "AddStudent", The plugin did not properly sanitize and escape the $id variable  which is retrieved from $_POST['Class'] this action can be targeted by teacher+ user.
In action "addMark", The plugin did not properly sanitize and escape the $flid variable which is retrieved from $_POST['exmarks'] this action can be targeted by teacher+ user.
In action "savetimetable", The plugin did not properly sanitize and escape the $day variable which is retrieved from $_POST['day'] this action can be targeted by teacher+ user.
In action "AttendanceEntry", The plugin did not properly sanitize and escape the $stid or $class variable which is retrieved from $_POST['absent'] or $_POST['AttendanceClass']  this action can be targeted by teacher+ user.
 

Affects Plugins

wpschoolpress
Fixed in version 2.1.10

References

CVE
CVE-2021-24575

Classification

Type

SQLI

OWASP top 10
A1: Injection
CWE
CWE-89

Miscellaneous

Original Researcher

ZhongFu Su(JrXnm) of Wuhan University

Submitter

ZhongFu Su(JrXnm) of Wuhan University

Submitter website
https://blog.szfszf.top
Verified

Yes

WPVDB ID
83c9c3af-9eca-45e0-90d7-edc69e616e6a

Timeline

Publicly Published

2021-10-11 (about 1 years ago)

Added

2021-10-11 (about 1 years ago)

Last Updated

2022-09-26 (about 5 months ago)

Our Other Services

WPScan WordPress Security Plugin
WPScan

Vulnerabilities

WordPressPluginsThemesOur StatsSubmit vulnerabilities

About

How it worksPricingWordPress pluginNewsContact

For Developers

StatusAPI detailsCLI scanner

Other

PrivacyTerms of serviceSubmission termsDisclosure policyPrivacy Notice for California Users
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us