제출 #944383: aiyiyi121 SxDevOps 1.1 Privilege Escalation정보

제목aiyiyi121 SxDevOps 1.1 Privilege Escalation
설명SxDevOps UserSerializer includes is_superuser, is_staff, and is_active in Meta.fields, but read_only_fields only protects date_joined and last_login. The update() method iterates over all validated_data fields via setattr(), allowing any user with rbac.user.manage permission to set is_superuser=True on any account including their own, bypassing the entire RBAC permission system. Vulnerable code in backend/rbac/serializers.py lines 122-164: class UserSerializer(serializers.ModelSerializer): class Meta: model = User fields = [..., 'is_superuser', 'is_staff', 'is_active', ...] read_only_fields = ('date_joined', 'last_login') # NOT is_superuser! def update(self, instance, validated_data): for attr, value in validated_data.items(): setattr(instance, attr, value) # is_superuser=True gets set directly Exploitation: PATCH /api/users/2/ {"is_superuser": true, "is_staff": true} Impact: Complete RBAC bypass. Attackers can create backdoor superuser accounts and gain full system control.
원천⚠️ https://github.com/aiyiyi121/sxdevops/issues/16
사용자
 _lxf (UID 63911)
제출2026. 08. 24. AM 04:48 (27 날 ago)
모더레이션2026. 09. 19. PM 12:15 (26 days later)
상태수락
VulDB 항목407927 [aiyiyi121 SxDevOps 1.0/1.1 UserSerializer serializers.py update 권한 상승]
포인트들20

Do you know our Splunk app?

Download it now for free!