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

CVE-2024-50823

CVE-2024-50823 SQL Injection in Kashipara
📅 PUBLISHED: 2024-11-14 00:00 UTC 🔄 UPDATED: 2026-08-12 23:45 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.14%
👁️
0.14% probability
3.4× 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 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-2024-50823 is a critical SQL Injection vulnerability discovered in the Kashipara E-learning Management System Project version 1.0. The flaw resides in the /admin/login.php script, where both the username and password parameters are directly concatenated into SQL queries without proper sanitization or parameterization. This allows an unauthenticated attacker to bypass authentication, extract sensitive data, or potentially achieve remote code execution via stacked queries. The vulnerability has a public proof-of-concept (PoC) but no official patch is available as of this report. The EPSS score is 0.0%, indicating low exploitation activity in the wild, but the risk remains high due to the simplicity of 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 vulnerability is not related to any package manager (NPM, PyPI, Go, Ruby). It is a standalone PHP application. However, organizations using this software should treat it as a supply chain risk due to the lack of vendor support and patch availability.

CVSS Breakdown & Threat Level

The CVSS vector is not provided in the NVD data, but based on the vulnerability characteristics, a reasonable assessment is:

  • 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) – The vulnerable component is the only one affected.
  • Confidentiality (C): High (H) – Full database access possible.
  • Integrity (I): High (H) – Data can be modified or deleted.
  • Availability (A): High (H) – Could lead to denial of service.

Estimated CVSS Score: 9.8 (Critical)

Threat Level: Critical – Immediate action required.

Deep Dive & Mechanics

The vulnerability is a classic SQL Injection in the login mechanism. The PHP code in /admin/login.php likely constructs a query similar to:

$sql = "SELECT * FROM admin WHERE username = '$_POST[username]' AND password = '$_POST[password]'";

An attacker can inject SQL metacharacters into either parameter to manipulate the query. For example, using ' OR '1'='1 as the username and any password will result in:

SELECT * FROM admin WHERE username = '' OR '1'='1' AND password = 'anything'

This always returns a valid row, bypassing authentication. More advanced payloads can extract data using UNION-based injection or time-based blind techniques.

The vulnerability is present in version 1.0 of the Kashipara E-learning Management System. No patched version has been released.

Vulnerable vs. Patched Code

Vulnerable Code (hypothetical reconstruction):

<?php
$username = $_POST['username'];
$password = $_POST['password'];
$sql = "SELECT * FROM admin WHERE username = '$username' AND password = '$password'";
$result = mysqli_query($conn, $sql);
if (mysqli_num_rows($result) > 0) {
    // login success
} else {
    // login failed
}
?>

Patched Code (using prepared statements):

<?php
$stmt = $conn->prepare("SELECT * FROM admin WHERE username = ? AND password = ?");
$stmt->bind_param("ss", $username, $password);
$username = $_POST['username'];
$password = $_POST['password'];
$stmt->execute();
$result = $stmt->get_result();
if ($result->num_rows > 0) {
    // login success
} else {
    // login failed
}
?>

The patched version uses parameterized queries, which prevent SQL injection by separating SQL logic from data.

Exploitation & Lab Setup

Red Team

Prerequisites:

  • Target running Kashipara E-learning Management System 1.0.
  • Network access to /admin/login.php.

Exploitation Steps:

  1. Bypass Authentication:

    • Username: ' OR '1'='1' -- -
    • Password: anything
    • This logs in as the first admin user.
  2. Extract Data (UNION-based):

    • Username: ' UNION SELECT 1,2,3,4,5,6,7,8,9,10 -- -
    • Password: x
    • Adjust column count based on error messages.
  3. Time-Based Blind Injection:

    • Username: ' OR IF(1=1, SLEEP(5), 0) -- -
    • Password: x
    • Observe response delay.

Example SQLMap Command:

sqlmap -u "http://target.com/admin/login.php" --data="username=admin&password=test" --batch --dump

Blue Team

Detection:

  • Monitor for SQL injection patterns in HTTP POST parameters to /admin/login.php.
  • Look for unusual characters like single quotes ('), double dashes (--), or OR/AND keywords.
  • Alert on response times exceeding normal thresholds (time-based injection).

Hunting:

  • Search logs for username or password parameters containing SQL keywords.
  • Correlate with failed login attempts followed by successful login from the same IP.

Mitigation:

  • Immediately apply input validation and parameterized queries.
  • If patching is not possible, deploy a Web Application Firewall (WAF) with SQL injection rules.
  • Restrict access to /admin/login.php via IP whitelisting or VPN.

Indicators of Compromise (IOCs)

  • Network:
    • HTTP POST requests to /admin/login.php with SQL-like payloads in username or password fields.
    • Unusual response sizes or error messages containing SQL syntax.
  • Host:
    • Unexpected database queries in MySQL logs (e.g., SELECT * FROM admin WHERE username = '' OR '1'='1').
    • New admin users created in the database.
  • File:
    • Modified PHP files in the web root (e.g., webshells uploaded via INTO OUTFILE).

Detection Engineering

YARA Rule

rule CVE_2024_50823_SQLi_Login {
    meta:
        description = "Detects SQL injection attempts targeting Kashipara E-learning login"
        author = "Valters IT"
        date = "2025-04-10"
        cve = "CVE-2024-50823"
    strings:
        $sqli1 = /username=.*['\"]\s*(OR|AND)\s+['\"]?1['\"]?\s*=\s*['\"]?1/i
        $sqli2 = /password=.*['\"]\s*(OR|AND)\s+['\"]?1['\"]?\s*=\s*['\"]?1/i
        $sqli3 = /username=.*UNION\s+SELECT/i
        $sqli4 = /password=.*SLEEP\s*\(/i
    condition:
        any of them
}

Sigma Rule

title: SQL Injection Attempt on Kashipara E-learning Login
id: 8a9b7c6d-5e4f-3a2b-1c0d-9e8f7a6b5c4d
status: experimental
description: Detects SQL injection patterns in HTTP POST requests to /admin/login.php
author: Valters IT
date: 2025-04-10
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: POST
        cs-uri-stem: /admin/login.php
        cs-uri-query|contains:
            - "' OR '1'='1"
            - "' OR 1=1"
            - "UNION SELECT"
            - "SLEEP("
    condition: selection
falsepositives:
    - Legitimate use of special characters in passwords (rare)
level: high

Suricata Rule

alert http $EXTERNAL_NET any -> $HOME_NET any (
    msg:"CVE-2024-50823 SQL Injection Attempt on Kashipara E-learning Login";
    flow:to_server,established;
    content:"POST"; http_method;
    content:"/admin/login.php"; http_uri;
    content:"username="; http_client_body;
    pcre:"/username=[^&]*['\"]\s*(OR|AND)\s+['\"]?1['\"]?\s*=\s*['\"]?1/i";
    sid:1000001;
    rev:1;
    priority:1;
)

Remediation & Mitigation

  1. Immediate Actions:

    • Disable the /admin/login.php endpoint if not required.
    • Apply input validation (whitelist allowed characters) for username and password fields.
    • Use parameterized queries (prepared statements) in all database interactions.
  2. Long-Term Fix:

    • Upgrade to a patched version if the vendor releases one.
    • If no patch is available, consider migrating to a different, actively maintained e-learning platform.
  3. Compensating Controls:

    • Deploy a WAF with SQL injection signatures.
    • Implement network segmentation to limit database exposure.
    • Enable detailed logging and monitoring for all admin login attempts.
  4. Validation:

    • After applying fixes, test with SQLMap or manual payloads to confirm the vulnerability is resolved.

Report generated by Valters IT DevSecOps & CTI Division. This document is intended for authorized security professionals only.

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

inurl:/admin/login.php
kashipara e-learning management system

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