The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-1545

CVE-2023-1545: Teampass SQL Injection Vulnerability

CVE-2023-1545 is a SQL injection vulnerability in Teampass that allows attackers to manipulate database queries and compromise sensitive data. This article covers the technical details, affected versions, and mitigation strategies.

Published: February 4, 2026

CVE-2023-1545 Overview

CVE-2023-1545 is a SQL Injection vulnerability affecting Teampass, an open-source collaborative password manager. The vulnerability exists in versions prior to 3.0.0.23 and allows unauthenticated attackers to execute arbitrary SQL queries against the underlying database through the API authentication mechanism.

Critical Impact

This SQL Injection vulnerability enables unauthenticated remote attackers to extract sensitive data from the Teampass database, including stored credentials, encryption keys, and user information. Given that Teampass is a password management solution, successful exploitation could lead to widespread credential theft and organizational compromise.

Affected Products

  • Teampass versions prior to 3.0.0.23
  • All Teampass installations using the vulnerable AuthModel.php API endpoint
  • Self-hosted Teampass deployments with network-accessible API interfaces

Discovery Timeline

  • 2023-03-21 - CVE-2023-1545 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-1545

Vulnerability Analysis

The vulnerability resides in the getUserAuth function within the api/Model/AuthModel.php file. This function handles user authentication through the Teampass API and constructs SQL queries using unsanitized user input. When processing login requests, the function directly concatenates the $login parameter into a SQL SELECT statement without proper input validation or parameterized queries.

The vulnerable code path is accessible via the network without requiring prior authentication, making it particularly dangerous for internet-facing Teampass installations. An attacker can leverage this SQL Injection to bypass authentication entirely, extract sensitive password vault contents, and potentially modify or delete stored credentials.

Root Cause

The root cause is a classic SQL Injection vulnerability (CWE-89) where user-controlled input is directly concatenated into SQL queries. The vulnerable implementation constructed queries using string concatenation with the $login variable: WHERE login='".$login."'". This pattern allows attackers to break out of the intended query context and inject malicious SQL commands.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can send crafted HTTP requests to the Teampass API endpoint with malicious payloads in the login parameter. The injection point allows for various SQL attack techniques including:

  • UNION-based injection to extract data from other database tables
  • Boolean-based blind injection to enumerate database contents
  • Time-based blind injection for data extraction when direct output is not available
php
// Vulnerable code (before patch) - Source: https://github.com/nilsteampassnet/teampass/commit/4780252fdb600ef2ec2758f17a37d738570cbe66
// The login parameter is directly concatenated into the SQL query
$userInfoRes = $this->select("SELECT id, pw, public_key, private_key, personal_folder, fonction_id, groupes_visibles, groupes_interdits, user_api_key FROM " . prefixTable('users') . " WHERE login='".$login."'");

// Fixed code (after patch) - implements input sanitization
$inputData = dataSanitizer(
    [
        'login' => isset($login) === true ? $login : '',
        'password' => isset($password) === true ? $password : '',
        'apikey' => isset($apikey) === true ? $apikey : '',
    ],
    [
        'login' => 'trim|escape',
        'password' => 'trim|escape',
        'apikey' => 'trim|escape',
    ],
    API_ROOT_PATH . '/..'
);

Source: GitHub Teampass Commit

Detection Methods for CVE-2023-1545

Indicators of Compromise

  • Unusual API requests to authentication endpoints containing SQL metacharacters such as single quotes, UNION statements, or comment sequences
  • Database query logs showing malformed or unexpected SQL syntax in authentication-related queries
  • Failed authentication attempts with abnormally long or structured login values
  • Access logs showing repeated requests to /api/ endpoints with varying payloads

Detection Strategies

  • Deploy Web Application Firewall (WAF) rules to detect SQL Injection patterns in HTTP request parameters targeting Teampass API endpoints
  • Monitor database query logs for anomalous patterns including UNION SELECT, OR 1=1, time-based delays, and comment injection attempts
  • Implement intrusion detection signatures for known SQL Injection attack payloads targeting the login parameter
  • Enable detailed logging on the Teampass application to capture and analyze authentication-related API requests

Monitoring Recommendations

  • Configure real-time alerting for authentication failures with suspicious payload characteristics
  • Establish baseline metrics for normal API authentication traffic patterns and alert on deviations
  • Monitor database performance metrics for unusual query execution times that may indicate time-based blind SQL Injection attempts
  • Review access logs regularly for reconnaissance activity targeting API endpoints

How to Mitigate CVE-2023-1545

Immediate Actions Required

  • Upgrade Teampass to version 3.0.0.23 or later immediately to receive the security patch
  • If immediate patching is not possible, restrict network access to the Teampass API endpoints using firewall rules
  • Audit database access logs for any historical evidence of SQL Injection exploitation
  • Review and rotate all credentials stored in Teampass if compromise is suspected

Patch Information

The vulnerability has been addressed in Teampass version 3.0.0.23 through the implementation of proper input sanitization. The patch introduces the dataSanitizer function to sanitize the login, password, and apikey parameters before they are used in database queries. The fix applies trim and escape operations to all input data, preventing SQL metacharacters from being interpreted as part of the query syntax.

For detailed patch information, refer to the GitHub Teampass Commit and the Huntr Bounty Report.

Workarounds

  • Implement network-level access controls to restrict API access to trusted IP addresses only
  • Deploy a Web Application Firewall (WAF) with SQL Injection detection rules in front of Teampass
  • Disable or restrict API functionality if not required for your deployment
  • Use database-level auditing to monitor and log all queries executed against the Teampass database
bash
# Example: Restrict Teampass API access via nginx configuration
location /api/ {
    # Allow only trusted internal networks
    allow 10.0.0.0/8;
    allow 192.168.0.0/16;
    deny all;
    
    # Pass to PHP handler
    try_files $uri $uri/ /api/index.php?$query_string;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechTeampass

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability11.32%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-89
  • Vendor Resources
  • GitHub Teampass Commit

  • Huntr Bounty #942c015f
  • Related CVEs
  • CVE-2024-50703: Teampass Auth Bypass Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English