/

CVE-2026-125076

Severity:

HIGH RISK

(7.3)

Missing Authentication (CWE-306) in Smart Attendance API

CVE-2026-125076

Deferred

Vulnerability type

Category:

Authentication Bypass

CWE:

CWE-287, CWE-306

Impact:

Unauthorized access to attendance functionality

Severity:

HIGH RISK

(7.3)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

The Smart Attendance System's JSON attendance endpoint may accept a student_code value without adequately verifying the requester's identity. A remote attacker who can reach the endpoint could potentially invoke attendance-related functionality without authentication.

Affected context

The issue is reported in the JSON Endpoint component of SourceCodester Smart Attendance System with QR Code Scanner 1.0, in api/attendance_handler.php. It may become risky when the endpoint processes a supplied student_code without requiring authentication or otherwise verifying that the requester is permitted to perform the requested operation.

Exploit preconditions

  • Attack surface: The attendance JSON endpoint must be reachable over the network.
  • Required access: The description does not indicate that valid credentials are required; an attacker needs the ability to submit a request to the endpoint.
  • Trigger point: Handling of the student_code argument in api/attendance_handler.php.
  • Why exploitation is possible: The reported behavior indicates that manipulating this argument can result in a missing-authentication condition.

Why this happens

The reported weakness is an authentication control failure: a sensitive endpoint may process a request without first establishing the caller's identity. This maps primarily to CWE-306: Missing Authentication for Critical Function and is also related to CWE-287: Improper Authentication. Treating a caller-supplied student_code as sufficient grounds to process an operation can leave the endpoint without a reliable authentication boundary.

Potential impact

  • An attacker may invoke attendance-related functionality without authentication.
  • Attendance records or related information could be exposed or affected, depending on the endpoint's behavior.
  • Unauthorized requests could undermine the integrity of attendance workflows.

General mitigation guidance

Mitigation generally centers on enforcing authentication before processing sensitive endpoint actions and verifying authorization for each requested operation.

Common defensive patterns include:

  • Require an authenticated identity for attendance operations.
  • Authorize actions against the authenticated user's permissions rather than trusting a supplied student_code.
  • Validate and constrain request fields, while treating validation as separate from authentication and authorization.
  • Apply least-privilege access to endpoint operations and associated data.
  • Use secure-by-default behavior that rejects requests when identity or authorization checks are absent or fail.

How teams detect issues like this

Review endpoint handlers for sensitive operations that execute before authentication and authorization checks.

Useful detection approaches include:

  • Static analysis rules that flag handlers missing authentication middleware or equivalent checks.
  • Code review of how student_code is validated and tied to an authenticated identity.
  • Policy checks requiring authentication and authorization controls for sensitive API routes.
  • Monitoring for unexpected unauthenticated requests to attendance endpoints and unusual request patterns.

Sources

SourceLink
github.comgithub.com/yuechuya/sourcecodester-vuln-reports/blob/main/reports/VULN-03-Unauthenticated-Attendance-Write.md
vuldb.comvuldb.com/cve/CVE-2026-125076
vuldb.comvuldb.com/submit/1041014
vuldb.comvuldb.com/vuln/433180
vuldb.comvuldb.com/vuln/433180/cti
sourcecodester.comsourcecodester.com/

Frequently asked

questions

The report indicates that the affected endpoint can be attacked remotely. Exploitation depends on the endpoint being reachable and accepting the relevant request.

The description identifies manipulation of student_code as the trigger and reports missing authentication. It does not specify any additional access requirement.

Require authentication before sensitive actions, then authorize each action using the authenticated identity and its permissions.

Apply consistent authentication and authorization controls to API routes, avoid trusting caller-supplied identifiers as proof of identity, and include route-level security checks in code review and automated policy enforcement.

Find out what's already
exploitable in your codebase.