CVE-2022-1076 in Automatic Question Paper Generator Systeminfo

Summary

by MITRE • 03/29/2022

A vulnerability was found in Automatic Question Paper Generator System 1.0. It has been classified as problematic. This affects the file /aqpg/users/login.php of the component My Account Page. The manipulation of the argument First Name/Middle Name/Last Name leads to cross site scripting. It is possible to initiate the attack remotely.

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 05/18/2026

The Automatic Question Paper Generator System version 1.0 contains a cross site scripting vulnerability that resides within the user authentication and account management functionality. This vulnerability specifically affects the login.php file which serves as the entry point for user account access and is part of the My Account Page component. The flaw manifests when user input is not properly sanitized during the login process, allowing malicious actors to inject malicious scripts into the First Name, Middle Name, or Last Name fields. The vulnerability has been classified as problematic and represents a significant security risk to the system's integrity and user data protection.

The technical implementation of this vulnerability stems from insufficient input validation and output encoding mechanisms within the web application's user registration and login handling code. When users enter their personal information including names during the authentication process, the application fails to properly sanitize or escape special characters that could be interpreted as HTML or JavaScript code. This lack of proper input sanitization creates an environment where attackers can inject malicious payloads that execute in the context of other users' browsers. The vulnerability is particularly concerning because it operates on the login page itself, making it accessible to anyone attempting to authenticate or register within the system. The remote exploitation capability means that malicious actors can trigger this vulnerability without requiring physical access to the system or local network presence.

The operational impact of this cross site scripting vulnerability extends beyond simple data theft or session hijacking. Attackers could potentially leverage this vulnerability to execute arbitrary JavaScript code in victims' browsers, leading to session theft, credential harvesting, or redirection to malicious websites. The attack surface is particularly wide since the login page is frequently accessed by legitimate users, providing multiple opportunities for exploitation. This vulnerability could enable attackers to impersonate users, access sensitive examination data, or manipulate the question paper generation process itself. The system's reliance on user-provided personal information makes this attack vector particularly effective for targeting authenticated users within the examination management environment. According to CWE standards, this vulnerability maps to CWE-79 which specifically addresses cross site scripting flaws in web applications, and aligns with ATT&CK technique T1531 which covers "Modify Authentication Process" through web application vulnerabilities.

The recommended mitigation strategies include implementing comprehensive input validation and output encoding mechanisms throughout the application's user input handling processes. All user-supplied data must be properly sanitized before being processed or stored, with special characters being escaped or removed from First Name, Middle Name, and Last Name fields. The application should employ context-specific output encoding to prevent malicious scripts from executing in the browser environment. Additionally, implementing proper content security policies can help prevent unauthorized script execution even if input validation is bypassed. Regular security code reviews and penetration testing should be conducted to identify similar vulnerabilities in other parts of the application. The system should also implement proper session management and authentication controls to minimize the impact of any successful exploitation attempts. These remediation measures align with industry best practices for web application security and help address the underlying CWE-79 vulnerability category while supporting broader security frameworks such as those defined in the OWASP Top Ten project.

Responsible

VulDB

Disclosure

03/29/2022

Moderation

accepted

CPE

ready

EPSS

0.00540

KEV

no

Activities

very low

Sources

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!