Skip to content

WordPress Database Deserialization: Potential for Object Injection

Moderate
jamieblomerus published GHSA-pqwp-qrp7-grg4 Dec 26, 2023

Package

WP-Mobile-BankID-Integration (WordPress)

Affected versions

< 1.0.1

Patched versions

1.0.1

Description

Impact

This vulnerability is classified as a Deserialization of Untrusted Data vulnerability (CWE-502), specifically impacting scenarios where an attacker can manipulate the database. Users who have environments where database access is strictly controlled and limited to trusted entities are less likely to be impacted. However, if unauthorized actors gain access to the database, they could exploit this vulnerability to execute object injection attacks. This could lead to unauthorized code execution, data manipulation, or data exfiltration within the WordPress environment.

Patches

Yes, the problem has been patched. Users of the plugin should upgrade to version 1.0.1 (or later), where the serialization and deserialization of OrderResponse objects have been switched out to an array stored as JSON.

Workarounds

A possible workaround for users unable to upgrade immediately is to enforce stricter access controls on the database, ensuring that only trusted and authorized entities can modify data. Additionally, implementing monitoring tools to detect unusual database activities could help identify and mitigate potential exploitation attempts.

It's important to note, however, that these measures are only temporary and do not replace the need for updating to a patched version of the plugin.

References

For more information on deserialization vulnerabilities, users can visit:

Severity

Moderate

CVSS overall score

This score calculates overall vulnerability severity from 0 to 10 and is based on the Common Vulnerability Scoring System (CVSS).
/ 10

CVSS v3 base metrics

Attack vector
Local
Attack complexity
High
Privileges required
High
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS v3 base metrics

Attack vector: More severe the more the remote (logically and physically) an attacker can be in order to exploit the vulnerability.
Attack complexity: More severe for the least complex attacks.
Privileges required: More severe if no privileges are required.
User interaction: More severe when no user interaction is required.
Scope: More severe when a scope change occurs, e.g. one vulnerable component impacts resources in components beyond its security scope.
Confidentiality: More severe when loss of data confidentiality is highest, measuring the level of data access available to an unauthorized user.
Integrity: More severe when loss of data integrity is the highest, measuring the consequence of data modification possible by an unauthorized user.
Availability: More severe when the loss of impacted component availability is highest.
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H

CVE ID

CVE-2023-51700

Weaknesses

Credits