CVE-2026-34406
JSON

9.4critical

APTRS: Privilege Escalation via Mass Assignment of is_superuser in User Edit Endpoint

Severity
9.4critical CVSS:4.0 by GitHub_M
Exploit likelihood
0.60% (higher than 50% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

APTRS (Automated Penetration Testing Reporting System) is a Python and Django-based automated reporting tool designed for penetration testers and security organizations. Prior to version 2.0.1, the edit_user endpoint (POST /api/auth/edituser/<pk>) allows Any user who can reach that endpoint and submit crafted permission to escalate their own account (or any other account) to superuser by including "is_superuser": true in the request body. The root cause is that CustomUserSerializer explicitly includes is_superuser in its fields list but omits it from read_only_fields, making it a writable field. The edit_user view performs no additional validation to prevent non-superusers from modifying this field. Once is_superuser is set to true, gaining unrestricted access to all application functionality without requiring re-authentication. This issue has been patched in version 2.0.1.

Affected

Product or packageVersionsReported by
APTRS APTRS< 2.0.1, before 2.0.1CVE List, NVD

All scores

GitHub_M9.4critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-915

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

APTRS (Automated Penetration Testing Reporting System) is a Python and Django-based automated reporting tool designed for penetration testers and security organizations. Prior to version 2.0.1, the edit_user endpoint (POST /api/auth/edituser/<pk>) allows Any user who can reach that endpoint and submit crafted permission to escalate their own account (or any other account) to superuser by including "is_superuser": true in the request body. The root cause is that CustomUserSerializer explicitly includes is_superuser in its fields list but omits it from read_only_fields, making it a writable field. The edit_user view performs no additional validation to prevent non-superusers from modifying this field. Once is_superuser is set to true, gaining unrestricted access to all application functionality without requiring re-authentication. This issue has been patched in version 2.0.1.

NVD (es)

APTRS (Automated Penetration Testing Reporting System) es una herramienta de informes automatizada basada en Python y Django, diseñada para probadores de penetración y organizaciones de seguridad. Antes de la versión 2.0.1, el endpoint edit_user (POST /API/auth/edituser/<pk>) permite a cualquier usuario que pueda alcanzar ese endpoint y enviar un permiso manipulado escalar su propia cuenta (o cualquier otra cuenta) a superusuario al incluir 'is_superuser': true en el cuerpo de la solicitud. La causa raíz es que CustomUserSerializer incluye explícitamente is_superuser en su lista de campos pero lo omite de read_only_fields, convirtiéndolo en un campo editable. La vista edit_user no realiza ninguna validación adicional para evitar que los no-superusuarios modifiquen este campo. Una vez que is_superuser se establece en true, se obtiene acceso sin restricciones a toda la funcionalidad de la aplicación sin requerir re-autenticación. Este problema ha sido parcheado en la versión 2.0.1.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-34406 changed 2026-04-03CVE Terms of Use
NVDCVE-2026-34406 changed 2026-07-24Public domain