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

Published Dec 1, 2026
·
Updated

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.readonlyfields 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 limitchoicesto, 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.

Affected Software

1 affected component
The Hackers Labs The Hackers Labs Academy

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch 7166a28b1b0c2c3755563d1e7099a8a4760d1b8b

Event History

Dec 1, 2026
CVE Published
via MITRE·04:32 PM
Data Sourced
via MITRE·04:32 PM
RemedyDescriptionWeakness
Data Sourced
via OSV·04:32 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can perform this change?

An authenticated instructor who currently owns a course can submit the edit request. An administrator is also authorized by IsAdminOrOwnerInstructor to issue the request.

2

What does an attacker need to supply?

The attacker needs the identifier of a course they own and can send a PATCH request to /api/classroom/courses/<id>/edit/ with an instructor value. The target value can be any user ID, including an account without the instructor role, and the target account does not need to participate.

3

What happens after ownership is changed?

Subsequent ownership checks use the new instructor value. The original instructor is then denied further edit access to that course.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203