A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2021-47967

CVE-2021-47967: PHP Timeclock XSS Vulnerability

CVE-2021-47967 is a cross-site scripting flaw in PHP Timeclock 1.04 that lets unauthenticated attackers inject malicious JavaScript through URL paths and POST parameters. This article covers technical details, impact, and mitigation.

Published: May 21, 2026

CVE-2021-47967 Overview

CVE-2021-47967 affects PHP Timeclock 1.04, an open-source time tracking application distributed through SourceForge. The application contains multiple reflected cross-site scripting (XSS) vulnerabilities [CWE-79] across several core endpoints. Unauthenticated attackers can inject arbitrary JavaScript by appending payloads to URL paths targeting login.php, timeclock.php, audit.php, and timerpt.php. Attackers can also inject scripts through the from_date and to_date POST parameters in report generation requests. Successful exploitation executes attacker-controlled JavaScript in the victim's browser session, enabling session theft, credential harvesting, and unauthorized actions performed on behalf of authenticated users.

Critical Impact

Unauthenticated attackers can execute arbitrary JavaScript in victim browsers by tricking users into visiting crafted URLs targeting PHP Timeclock 1.04 endpoints.

Affected Products

  • PHP Timeclock 1.04
  • Endpoints: login.php, timeclock.php, audit.php, timerpt.php
  • Report parameters: from_date, to_date

Discovery Timeline

  • 2026-05-15 - CVE-2021-47967 published to NVD
  • 2026-05-18 - Last updated in NVD database

Technical Details for CVE-2021-47967

Vulnerability Analysis

The vulnerability stems from improper neutralization of user-supplied input before reflection in HTTP responses [CWE-79]. PHP Timeclock 1.04 echoes URL path components and POST parameters directly into rendered HTML without applying contextual output encoding. Attackers craft URLs that append JavaScript payloads to vulnerable endpoint paths or submit malicious values through the from_date and to_date parameters in report requests. The server returns the injected content as part of the response page, where the browser parses and executes it within the application's origin.

Because no authentication is required to reach the vulnerable endpoints, attackers can deliver payloads through phishing emails, malicious links on third-party sites, or compromised advertising. The XSS context allows execution of arbitrary client-side script in the browser of any user who visits the crafted URL.

Root Cause

The application fails to sanitize or HTML-encode input reflected from request URIs and POST bodies. PHP code paths handling login.php, timeclock.php, audit.php, and timerpt.php concatenate request data into HTML output without escaping characters such as <, >, ", and '. The from_date and to_date parameters used in timerpt.php for report generation are similarly reflected without validation against expected date formats.

Attack Vector

Exploitation requires user interaction. An attacker delivers a crafted link to a victim with an active session or browser access to the PHP Timeclock instance. When the victim clicks the link, the server reflects the payload and the browser executes it. The injected JavaScript runs with the privileges of the visiting user, enabling session cookie theft, form data exfiltration, and forced actions against the application. The vulnerability mechanism is described in the VulnCheck Advisory on PHP Timeclock and the Exploit-DB #49853 entry.

Detection Methods for CVE-2021-47967

Indicators of Compromise

  • HTTP requests to login.php, timeclock.php, audit.php, or timerpt.php containing <script>, javascript:, onerror=, or URL-encoded equivalents in the path or query string.
  • POST requests to timerpt.php with from_date or to_date parameter values containing HTML or JavaScript syntax instead of expected date formats.
  • Web server access logs showing unusually long URI paths appended to PHP Timeclock endpoints.

Detection Strategies

  • Deploy web application firewall (WAF) rules that inspect request paths and POST bodies for reflected XSS payload patterns targeting the affected endpoints.
  • Enable verbose HTTP request logging on the PHP Timeclock host and review entries for script tags, event handlers, and encoded payloads.
  • Correlate referrer headers with outbound requests from user browsers to identify phishing-driven exploitation attempts.

Monitoring Recommendations

  • Alert on any POST request to timerpt.php where from_date or to_date fails strict date format validation.
  • Monitor for repeated access attempts to PHP Timeclock endpoints from the same source IP with varied payload patterns, indicating fuzzing.
  • Track browser-reported Content Security Policy (CSP) violations if CSP headers are deployed in front of the application.

How to Mitigate CVE-2021-47967

Immediate Actions Required

  • Restrict access to PHP Timeclock 1.04 to trusted internal networks using firewall rules or VPN-only access until a fix is applied.
  • Place the application behind a WAF configured with OWASP Core Rule Set XSS protections.
  • Educate users about phishing links referencing the PHP Timeclock host and instruct them to avoid clicking unfamiliar URLs.

Patch Information

No official vendor patch is referenced in the advisory data. PHP Timeclock is hosted on the Timeclock Project Homepage and the PHP Timeclock Download Page. Organizations should evaluate replacing PHP Timeclock 1.04 with an actively maintained time tracking solution, or apply source-level fixes that HTML-encode all reflected input using htmlspecialchars() with ENT_QUOTES and validate from_date and to_date against a strict date regex.

Workarounds

  • Add reverse proxy rules that strip or reject request paths and parameters containing <, >, or script keywords before they reach PHP Timeclock.
  • Deploy a strict Content Security Policy header that disallows inline script execution to limit the impact of reflected payloads.
  • Validate from_date and to_date server-side against a YYYY-MM-DD pattern and reject any non-conforming input.
bash
# Example nginx configuration to block common XSS payloads in request URIs
location ~ \.(php)$ {
    if ($request_uri ~* "(<|%3C)script|javascript:|onerror=|onload=") {
        return 403;
    }
    add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none'";
}

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechPhp Timeclock

  • SeverityMEDIUM

  • CVSS Score5.1

  • EPSS Probability0.10%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/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
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • Timeclock Project Homepage

  • PHP Timeclock Download Page

  • Exploit-DB #49853

  • VulnCheck Advisory on PHP Timeclock
  • Related CVEs
  • CVE-2021-47966: PHP Timeclock SQL Injection Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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