Skip to content

Security: Protect annotation attempt answers - refs GHSA-8j57-5cjh-7pvj - #9257

Merged
christianbeeznest merged 1 commit into
chamilo:1.11.xfrom
christianbeeznest:security/GHSA-8j57-5cjh-7pvj-1.11.x
Oct 16, 2026
Merged

christianbeeznest merged 1 commit into
chamilo:1.11.xfrom
christianbeeznest:security/GHSA-8j57-5cjh-7pvj-1.11.x

Conversation

@christianbeeznest

Copy link
Copy Markdown
Contributor

Protects the annotation answer endpoint against unauthenticated and unauthorized access.

The endpoint now:

  • requires an authenticated user before returning annotation data;
  • validates that the attempt belongs to the requested course;
  • allows the attempt owner and legitimate course/session review roles;
  • validates that the requested question belongs to the exact quiz attempt;
  • preserves the staff preview flow for exe_id=0 with explicit authorization.

Verification:

  • anonymous request returns HTTP 403 with {"error":"access_denied"}
  • PHP lint passed
  • git diff --check passed

Refs GHSA-8j57-5cjh-7pvj

@christianbeeznest
christianbeeznest merged commit ee36e58 into chamilo:1.11.x Oct 16, 2026
1 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant