☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
SOON 🐛 CWE-639
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2023-47022

CVE-2023-47022 Insecure Direct Object Reference in Ncr
📅 PUBLISHED: 2024-02-06 00:00 UTC 🔄 UPDATED: 2026-08-12 09:03 UTC
⏳ SCORE PENDING — ANALYSIS IN PROGRESS [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.12%
👁️
0.12% probability
3.0× above the median CVE
Tier: ELEVATED
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: v.1.5.1
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2023-47022 is an Insecure Direct Object Reference (IDOR) vulnerability in NCR Terminal Handler v.1.5.1. This flaw allows an unprivileged user to edit audit logs for any user, leading to potential CSV injection attacks. The vulnerability has a CVSS score of 0.0 (unscored) and an EPSS score of 0.0%, indicating low exploitation probability. No public proof-of-concept or patch is currently available. The vendor, NCR, has not released a fix.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

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.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

CVSS Breakdown & Threat Level

  • CVSS Score: 0.0 (Unscored)
  • CVSS Vector: UNKNOWN
  • EPSS Score: 0.0% (Low exploitation probability)
  • Threat Level: Medium (due to IDOR and CSV injection potential)
  • Attack Vector: Network (likely)
  • Privileges Required: Low (unprivileged user)
  • User Interaction: None
  • Impact: Confidentiality (Low), Integrity (High), Availability (Low)

Deep Dive & Mechanics

The vulnerability resides in the audit log editing functionality of NCR Terminal Handler v.1.5.1. The application fails to properly validate user permissions when processing requests to modify audit logs. An attacker can manipulate a direct object reference (e.g., a user ID or log entry ID) to edit logs belonging to other users. This IDOR can be exploited to inject malicious CSV content into log files, which, when exported and opened in spreadsheet software, could execute arbitrary commands (CSV injection).

The attack flow:

  1. Authenticate as an unprivileged user.
  2. Intercept the request to edit an audit log entry.
  3. Modify the object reference (e.g., user_id or log_id) to target another user's log.
  4. Inject CSV payload (e.g., =CMD|' /C calc'!A0) into a log field.
  5. When an administrator exports and opens the log in Excel, the payload executes.

Vulnerable vs. Patched Code

No patched version is available. The vulnerable code likely lacks authorization checks:

Vulnerable (pseudo-code):

def edit_audit_log(log_id, new_content):
    log = db.get_log(log_id)  # No user ownership check
    log.content = new_content
    db.save(log)

Patched (expected):

def edit_audit_log(log_id, new_content, current_user):
    log = db.get_log(log_id)
    if log.user_id != current_user.id and not current_user.is_admin:
        raise PermissionError("Unauthorized")
    log.content = sanitize_csv(new_content)
    db.save(log)

Exploitation & Lab Setup

Red Team

  1. Setup: Deploy NCR Terminal Handler v.1.5.1 in a lab environment.
  2. Recon: Identify the audit log editing endpoint (e.g., /api/logs/edit).
  3. Exploit:
    • Authenticate as user1.
    • Send a POST request to edit log ID 5 (owned by admin):
      POST /api/logs/edit HTTP/1.1
      Content-Type: application/json
      Cookie: session=user1_session
      
      {"log_id": 5, "content": "=CMD|' /C calc'!A0"}
      
    • If successful, the admin's log is overwritten with the CSV injection payload.
  4. Impact: When the admin exports logs and opens them in Excel, the payload executes.

Blue Team

  1. Detection: Monitor for unusual API calls to audit log endpoints with mismatched user IDs.
  2. Prevention: Implement strict authorization checks and input sanitization.
  3. Response: If exploitation is detected, revoke the attacker's session and restore logs from backup.

Indicators of Compromise (IOCs)

  • Network: HTTP requests to /api/logs/edit with log_id values not belonging to the authenticated user.
  • Logs: Audit log entries containing suspicious CSV injection patterns (e.g., =, +, -, @ at the start of fields).
  • File: Exported CSV files with formulas like =CMD|... or =HYPERLINK(...).

Detection Engineering

YARA Rule

rule CVE_2023_47022_CSV_Injection {
    meta:
        description = "Detects CSV injection patterns in NCR Terminal Handler logs"
        author = "Valters IT"
        date = "2025-04-10"
    strings:
        $csv_inject = /^[=+\-@].*CMD|.*HYPERLINK|.*DDE/i
    condition:
        $csv_inject
}

Sigma Rule

title: NCR Terminal Handler IDOR Exploitation
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects attempts to edit audit logs for other users
logsource:
    category: application
    product: ncr_terminal_handler
detection:
    selection:
        event: "audit_log_edit"
        user_id|re: "^(?!%current_user_id%).*$"
    condition: selection
falsepositives:
    - Administrative actions
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2023-47022 NCR Terminal Handler IDOR Attempt";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"/api/logs/edit"; http_uri;
    pcre:"/\"log_id\":\s*\d+/";
    sid:1000001;
    rev:1;
)

Remediation & Mitigation

  • Immediate: Disable the audit log editing feature if not required.
  • Short-term: Implement proper authorization checks (e.g., verify user ownership before allowing edits).
  • Long-term: Apply input sanitization to prevent CSV injection (e.g., escape =, +, -, @ characters).
  • Workaround: Restrict access to the audit log endpoint via network segmentation or WAF rules.
  • Patch: Await an official patch from NCR. Monitor NCR's security advisories.

Valters IT

👁️ SHODAN DORKS (THREAT HUNTING)

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.

NCR Terminal Handler
NCR v.1.5.1

💣 PoC CODE AVAILABLE

Exploit code for this CVE is tracked in our database. Access poc_code via API Pro.

[ API_PRO ] →
◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2023-47022/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.