CVEFinder.io

CVE-2026-141362

πŸ”Ά medium
AI Summary

An insecure property assignment flaw in The Hackers Labs Academy CourseWriteSerializer lets an authenticated instructor reassign their course to arbitrary users via the API. By sending a crafted PATCH request, the attacker can hijack course ownership, permanently locking out the original creator without recipient consent.

Summary

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. IsAd

Description

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.

CVSS Score
-
EPSS Score
0.6
Exploit Probability
Published Date
2026-12-01
First Seen: 2026-12-04
🎯 CISA SSVC Assessment Updated: Dec 1, 2026
πŸ” Exploitation Status
None
No known exploits
βš™οΈ Automatable
NO
Requires human interaction
πŸ’₯ Technical Impact
Partial
Limited system impact
πŸ† Discovered By
Lois del RΓ­o Somoza XoΓ‘n M. Otero Jorge (analyst) Mario Alvarez (analyst) Secur0 CNA (coordinator) Manuel MartΓ­nez Casasola (remediation developer)
SSVC data provided by CISA
Last Modified 2026-12-02
CVSS Vector 4.0 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:X
CWE IDs (Weakness Types)

πŸ“¦ Affected Products 0

No affected products information available

πŸ”— References 2