CVE-2026-5240
Received Received - Intake
Cross-Site Scripting in BloodBank 1.0 /admin_state.php

Publication date: 2026-04-01

Last updated on: 2026-04-29

Assigner: VulDB

Description
A security vulnerability has been detected in code-projects BloodBank Managing System 1.0. This affects an unknown part of the file /admin_state.php. The manipulation of the argument statename leads to cross site scripting. It is possible to initiate the attack remotely. The exploit has been disclosed publicly and may be used.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-04-01
Last Modified
2026-04-29
Generated
2026-06-16
AI Q&A
2026-04-01
EPSS Evaluated
2026-06-14
NVD
EUVD
Affected Vendors & Products
Currently, no data is known.
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-79 The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
CWE-94 The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Compliance Impact

The vulnerability allows execution of arbitrary JavaScript in users' browsers, which can lead to theft of session cookies, hijacking of administrator sessions, unauthorized actions, and injection of malicious content. Such security weaknesses can result in unauthorized access to sensitive data and compromise the integrity and confidentiality of the system.

While the provided information does not explicitly mention compliance with standards like GDPR or HIPAA, the presence of a stored cross-site scripting vulnerability in an application managing sensitive data (such as a Blood Bank system) could potentially lead to violations of these regulations. This is because unauthorized access or manipulation of data due to this vulnerability may breach requirements for data protection, user privacy, and system security mandated by such standards.

Executive Summary

CVE-2026-5240 is a Stored Cross-Site Scripting (XSS) vulnerability found in the Blood Bank Managing System version 1.0, specifically in the administrative component at the /Blood_Bank/admin_state.php endpoint.

The vulnerability occurs because the application accepts user input through the statename parameter via an HTTP POST request and stores it directly in the backend database without any input validation or sanitization.

When the stored value is later displayed in the web interface, it is rendered without applying output encoding functions, allowing embedded HTML or JavaScript code to execute in users' browsers.

This enables attackers to inject arbitrary scripts that can execute whenever the affected page is viewed.

Impact Analysis

This vulnerability can have several impacts including:

  • Execution of arbitrary JavaScript code in users' browsers.
  • Theft of session cookies, which can lead to hijacking of administrator sessions.
  • Unauthorized actions within the application performed by attackers.
  • Injection of malicious content into the administrative interface.
  • Phishing attacks targeting users of the application.

Because the malicious payload is stored persistently in the database, all users who access the compromised page are at risk.

Detection Guidance

This vulnerability can be detected by testing the /Blood_Bank/admin_state.php endpoint for stored cross-site scripting (XSS) in the statename parameter via HTTP POST requests.

A practical detection method is to send a crafted POST request with a payload containing HTML or JavaScript code in the statename parameter and then observe if the payload is stored and executed when viewing the affected page.

Example command using curl to test the vulnerability:

  • curl -X POST -d "statename=<details/open/ontoggle=prompt(origin)>" http://[target]/Blood_Bank/admin_state.php

After sending this request, visit the page that displays the stored states to check if the JavaScript prompt appears, confirming the XSS vulnerability.

Mitigation Strategies

Immediate mitigation steps include:

  • Implement output encoding on the statename parameter before rendering it in the web interface, for example using PHP's htmlspecialchars() function.
  • Validate and sanitize all user inputs to the statename parameter to filter out any suspicious HTML or script content before storing it in the database.
  • Deploy Content Security Policy (CSP) headers such as Content-Security-Policy: default-src 'self' to reduce the risk of script execution.

These steps help prevent the injection and execution of malicious scripts, protecting users from session hijacking and other attacks.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-5240. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart