Description
A security flaw has been discovered in SourceCodester Indian Invoicing System up to 0.x/1.0. The impacted element is an unknown function of the file /Invoicing/add_order.php of the component Invoice Template Render Database-Backed. The manipulation of the argument customer_name results in cross site scripting. The attack may be launched remotely. The exploit has been released to the public and may be used for attacks.
Published: 2026-05-25
Score: 5.1 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A cross site scripting flaw exists in the add_order.php component of the SourceCodester Indian Invoicing System. By manipulating the customer_name argument, an attacker can inject arbitrary client‑side scripts that are rendered when an invoice template is displayed. The vulnerability stems from lacking proper encoding or validation of user input (CWE‑79) and the presence of a CWE‑94 marker suggests a potential weakness that could allow execution of malicious PHP code, although the description does not confirm this capability. Successful exploitation would allow an attacker to run JavaScript in the context of a victim’s browser, enabling session hijacking, credential theft, phishing, or defacement.

Affected Systems

SourceCodester Indian Invoicing System, versions up to 0.x and 1.0. The vulnerability impacts the Invoice Template Render component and the add_order.php script, which processes customer_name inputs submitted by users. The flaw affects the system by rendering unescaped user input within invoice templates, exposing end users to client‑side script execution when viewing invoices.

Risk and Exploitability

The vulnerability can be exploited by sending a crafted request to the add_order.php endpoint with a malicious customer_name value. Because the trigger is remote and requires no authentication, an attacker can initiate the exploit from anywhere with network access to the web server. The medium CVSS score reflects the impact limited to client browsers, but the lack of mitigation measures such as input sanitization or a CSP increases the likelihood that the injected script will execute successfully. While exploitation of the potential PHP code execution path (CWE‑94) is not confirmed, the presence of this marker suggests that additional consequences could exist if advanced exploitation succeeds. Overall, the risk remains moderate to high for unpatched installations.

Generated by OpenCVE AI on May 25, 2026 at 04:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to a patched version of the SourceCodester Indian Invoicing System that addresses the add_order.php XSS issue.
  • Sanitize the customer_name field on the server side, for example using htmlspecialchars or a dedicated sanitization library, to ensure any embedded HTML or script is neutralized.
  • Apply an input whitelist that allows only alphanumeric characters for customer_name to reduce the attack surface.
  • Deploy a Content Security Policy header that blocks execution of inline scripts and mitigates the impact of any remaining XSS payloads.

Generated by OpenCVE AI on May 25, 2026 at 04:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 25 May 2026 02:15:00 +0000

Type Values Removed Values Added
Description A security flaw has been discovered in SourceCodester Indian Invoicing System up to 0.x/1.0. The impacted element is an unknown function of the file /Invoicing/add_order.php of the component Invoice Template Render Database-Backed. The manipulation of the argument customer_name results in cross site scripting. The attack may be launched remotely. The exploit has been released to the public and may be used for attacks.
Title SourceCodester Indian Invoicing System Invoice Template Render Database-Backed add_order.php cross site scripting
First Time appeared Sourcecodester
Sourcecodester indian Invoicing System
Weaknesses CWE-79
CWE-94
CPEs cpe:2.3:a:sourcecodester:indian_invoicing_system:*:*:*:*:*:*:*:*
Vendors & Products Sourcecodester
Sourcecodester indian Invoicing System
References
Metrics cvssV2_0

{'score': 4, 'vector': 'AV:N/AC:L/Au:S/C:N/I:P/A:N/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 3.5, 'vector': 'CVSS:3.0/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 3.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:N/E:P/RL:X/RC:R'}

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P'}


Subscriptions

Sourcecodester Indian Invoicing System
cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-05-25T01:30:12.032Z

Reserved: 2026-05-24T06:38:36.789Z

Link: CVE-2026-9414

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-25T04:30:16Z

Weaknesses