提出 #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日 04:48 (28 日 ago)
モデレーション2026年09月19日 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!