⚠️

سلب مسئولیت و اخلاق حرفه‌ای

این مطالب صرفاً برای اهداف آموزشی، پژوهشی و افزایش آگاهی امنیتی ارائه شده‌اند. هرگونه استفاده غیرمجاز، غیرقانونی یا سوءاستفاده از اطلاعات، ابزارها و روش‌های مطرح‌شده، کاملاً بر عهده مخاطب است. نویسنده و منتشرکننده هیچ مسئولیتی در قبال خسارات، آسیب‌ها یا پیامدهای ناشی از استفاده نادرست از این مطالب نخواهند داشت.

CVE-2026-138669: CSV Injection in SourceCodester CET-Tally System 1.0 Exports | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-138669: CSV Injection in SourceCodester CET-Tally System 1.0 Exports

Vulnerability overview

The vulnerability records published on November 30, 2026, describe a CSV injection issue in the Leaderboard CSV Export component of SourceCodester CET-Tally System 1.0. The affected code is the export_leaderboard function in index.php, where the Category argument can contain spreadsheet formula syntax that survives into the generated CSV file.

CSV injection is a cross-application risk. The web application may treat the Category value as ordinary data, while spreadsheet software can interpret the same value as a formula when the export is opened. The precise request mechanism, authentication requirements, and payload syntax are not specified in the supplied material.

Affected systems

  • Product: SourceCodester CET-Tally System 1.0

  • Component: Leaderboard CSV Export

  • File: index.php

  • Function: export_leaderboard

  • Affected argument: Category

  • Weakness classifications: CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') and CWE-1236: Improper Neutralization of Formula Elements in a CSV File

The available sources identify version 1.0 only. They do not establish whether other versions are affected. Exploitation also depends on an attacker being able to submit or influence the Category value and on a user or administrator subsequently opening the resulting CSV in a spreadsheet application.

Technical analysis

The vulnerable data flow begins with remote input to Category, continues through export_leaderboard, and ends in a CSV cell that may be interpreted by spreadsheet software. Formula-leading characters commonly associated with CSV injection include =, +, -, and @.

Wrapping a value in CSV quotation marks does not by itself neutralize formula interpretation. The effective control point is therefore the CSV serialization boundary, where formula-leading cells require protection compatible with the spreadsheet applications used by the deployment. A server-side allowlist of legitimate Category values can provide an additional boundary when the expected category set is finite.

Depending on the spreadsheet program and its security settings, a malicious formula may attempt an external request, disclose data, redirect a user, or trigger other unsafe behavior. The supplied records do not establish that these outcomes occur in every supported spreadsheet application, and they contain no technical demonstration of the public exploit.

Exploitability and threat context

The advisory states that the attack can be performed remotely and that a public exploit is available. This distinguishes the issue from a purely theoretical parsing weakness. However, the supplied context contains no evidence of a confirmed exploitation campaign, affected production systems, or exploitation attributed to an actor.

The available scoring is mixed:

| Scoring system | Score | Severity |

|---|---:|---|

| CVSS 2.0 | 5.0 | MEDIUM |

| CVSS 3.1 | 4.3 | MEDIUM |

| CVSS 4.0 | 2.1 | LOW |

The CVSS 2.0 record also lists an exploitability score of 10.0 and an impact score of 2.9. Full CVSS vectors are not present in the provided context and therefore cannot be reproduced reliably.

The real-world assessment is low. The affected surface is limited to a named export function in one identified product version, and the resulting formula interpretation occurs downstream in a spreadsheet application. Public exploit availability raises the operational relevance, while the absence of observed exploitation, a confirmed patch, or KEV identification prevents a higher assessment.

Mitigation

The supplied remediation guidance calls for sanitizing the Category input, validating it before CSV export, updating the Leaderboard CSV Export component, and restricting access to export_leaderboard. No fixed release or confirmed vendor patch is named, so patch status remains unknown. A release qualifies as remediated only when SourceCodester release notes or equivalent vendor documentation explicitly establish that CVE-2026-138669 is addressed.

Interim defenses include limiting the export feature to trusted administrative accounts and validating Category against the application's legitimate category set. Formula-aware CSV serialization provides broader protection than quote-only escaping, while an apostrophe prefix can make untrusted cells inert when compatible with the expected spreadsheet workflow.

Authentication, authorization, CSRF protection where applicable, input-size limits, and network restrictions can further reduce exposure. Testing with values beginning =, +, -, and @ provides coverage for the relevant formula-interpretation behavior across the spreadsheet applications supported by the deployment.

Expert insight

CSV injection in this case is a trust-boundary mismatch rather than a conventional server-side code execution flaw. The application serializes data that another application later interprets under a richer grammar. Successful exploitation therefore depends on the combination of server-side input handling, CSV serialization, user interaction, and spreadsheet-specific behavior.

A durable design combines an allowlist for Category with formula-neutralizing serialization at the export layer. The latter is particularly valuable for reusable export functions, although the supplied evidence confirms the weakness only through the Category argument. Apostrophe prefixing also changes the stored value and may affect downstream workflows, making compatibility testing important. The unknown request format, absent vendor fix, and lack of active-exploitation evidence remain the main gaps for assessing operational exposure.

منابع

·
← اخبار