Public vulnerability disclosure

CVE-2026-141362

An instructor can reassign the ownership of their own course to any account through the course edit endpoint of The Hackers Labs Academy

publishedCWE-915

Improperly Controlled Modification of Dynamically-Determined Object Attributes (CWE-915) in CourseWriteSerializer (backend/apps/classroom/serializers.py) of The Hackers Labs Academy allows a user holding the instructor role who owns a course to reassign that course to any other account, through a PATCH to /api/classroom/courses/<id>/edit/ carrying an instructor value. The serializer lists instructor in Meta.fields while Meta.read_only_fields holds only id and slug, so the field is writable. IsAdminOrOwnerInstructor authorises who may issue the request, the owning instructor or an admin, and it runs before the update, but it does not restrict which attributes of the object an authorised request may change. The Course.instructor foreign key carries no limit_choices_to, so the target may be any user id, including an account that does not hold the instructor role, and the receiving account takes no part in the change. Once the value has changed, IsAdminOrOwnerInstructor resolves ownership from the new value on the next request, so the original owner is refused edit access to the course. This results in the ownership attribute of a course being set to a value the requester is not authorised to set, without the consent of the account it is set to.

Technical severity5.3 mediumCVSS 4.0 · CNA: Secur0
Published2026-12-01Source updated 2026-12-01
Collected2026-12-012 attributed sources

Fixes and workarounds

Fix

Update to commit 7166a28b1b0c2c3755563d1e7099a8a4760d1b8b or later, which adds a validate_instructor method to CourseWriteSerializer that accepts a changed instructor only from a request whose user holds the admin role and rejects it otherwise. Where the commit cannot be applied, adding instructor to Meta.read_only_fields removes the writable field, at the cost of also removing the admin path for reassigning a course.

Source: CNA: Secur0

Fix

The reporting source identifies this reference as a patch. Check the advisory for affected versions and supported release branches.

Source: CNA: Secur0

Affected products and versions

Affected products, source version ranges and reporting authorities
ProductVersionsAuthority
The Hackers Labs Academy
CuriosidadesDeHackers
≥ fa3cf76e064bdf090a9f8dfc1e4f2c0059f2677b; < 7166a28b1b0c2c3755563d1e7099a8a4760d1b8b (affected, git)
Other versions: unaffected
CNA: Secur0

Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.

CVSS assessments

CVSS scores, vectors and reporting authorities
Version / scoreVectorAuthority
4.0 / 5.3
medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NCNA: Secur0
4.0 / 5.3
medium
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XNVD: 4daa8cea-433a-44bd-9456-53b127fc289a

Exploit evidence

No exploit evidence in collected sources. This is not proof of no exploitation.

References

For agents and automation

Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.

Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.

Endpoints and access details

https://api.y2.dev/api/v2/cyber/cves
https://api.y2.dev/api/v2/cyber/cves/{cveId}

A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.

For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.

Agent access JSON · OpenAPI · CVE API guide