CVE-2026-4973

SourceCodester Online Quiz System add-question.php cross site scripting

Published Mar 27, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
A vulnerability was detected in SourceCodester Online Quiz System up to 1.0. Affected by this vulnerability is an unknown functionality of the file endpoint/add-question.php. Performing a manipulation of the argument quiz_question results in cross site scripting. It is possible to initiate the attack remotely. The exploit is now public and may be used.

Analysis

AI-generated

Technical impact

The vulnerability resides in the SourceCodester Online Quiz System up to version 1.0, specifically in the add‑question.php endpoint. Manipulating the quiz_question parameter allows an attacker to inject arbitrary script code, which the application renders without proper sanitization. This results in classic reflected cross‑site scripting, which can be triggered remotely through crafted URLs or form submissions. The impact is the potential theft of user credentials or session hijacking of any authenticated user who views the injected page.

Affected Systems

Affected systems are instances of SourceCodester’s Online Quiz System running version 1.0 or earlier. No specific sub‑components or plugins are enumerated; the flaw is tied to the add‑question.php functionality within the core application. Users who host or deploy this version are therefore vulnerable.

Risk and Exploitability

With a CVSS score of 5.1, the flaw is considered moderate in severity. No EPSS score is available, and the vulnerability is not listed in CISA’s KEV catalog. The exploit requires only remote access to the vulnerable endpoint and does not need elevated privileges, so an external attacker can easily execute the attack by sending a crafted request. If the application allows anonymous or low‑privilege users to access add‑question.php, the risk is amplified.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Check SourceCodester’s website or support forums for an updated version of the Online Quiz System that fixes the add‑question.php XSS flaw and apply it immediately.
  • If a patch is not yet available, restrict access to the add‑question.php page so that only authenticated users with appropriate privileges can submit data, and enable strict content security policies to limit script execution.
  • Sanitize the quiz_question input on the server side and ensure that any dynamic content is properly escaped before rendering to prevent script injection.
  • Monitor web application logs for repeated attempts to inject payloads into the quiz_question parameter and investigate any detected anomalies.

Generated by OpenCVE AI on March 28, 2026 at 06:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Sourcecodester
Sourcecodester online Quiz System
Vendors & Products Sourcecodester
Sourcecodester online Quiz System
Type Values Removed Values Added
Description A vulnerability was detected in SourceCodester Online Quiz System hasta 1.0. Affected by this vulnerability is an unknown functionality of the file endpoint/add-question.php. Performing a manipulation of the argument quiz_question results in cross site scripting. It is possible to initiate the attack remotely. The exploit is now public and may be used. A vulnerability was detected in SourceCodester Online Quiz System up to 1.0. Affected by this vulnerability is an unknown functionality of the file endpoint/add-question.php. Performing a manipulation of the argument quiz_question results in cross site scripting. It is possible to initiate the attack remotely. The exploit is now public and may be used.
Type Values Removed Values Added
Description A vulnerability was detected in SourceCodester Online Quiz System hasta 1.0. Affected by this vulnerability is an unknown functionality of the file endpoint/add-question.php. Performing a manipulation of the argument quiz_question results in cross site scripting. It is possible to initiate the attack remotely. The exploit is now public and may be used.
Title SourceCodester Online Quiz System add-question.php cross site scripting
Weaknesses CWE-79
CWE-94
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'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
VulDB
Published
Updated
Mar 30, 2026, 6:02 PM
Reserved
Mar 27, 2026, 8:55 AM
Status
Deferred
Published
Mar 27, 2026, 8:16 PM
Modified
Oct 26, 2026, 9:10 PM