Skip to content
Software development
ASD ISMISM-2048

ASD ISM 2048 Prevent non-admin users from altering their own permissions or privileges

What it says

Where software supports multiple user roles, non-administrative users are prevented from altering their profile permissions or privileges.

Quoted as published. Everything else on this page is written by Control Stack.

In plain English

Software with more than one user role must stop non-administrative users from changing the permissions or privileges on their own profile.

Where software supports multiple user roles, non-administrative users must be prevented from altering their own profile permissions or privileges. Prevented means the software itself refuses the change, not merely that the option is hidden in the interface: a crafted request that adds a role field, edits a token or calls the API directly must fail too. The duty sits with the software's developers, because role settings chosen by the organisation running it cannot fix a flaw that lets users raise their own access.

Why it matters

If ordinary users can raise their own permissions, the software's roles no longer limit anyone: whoever controls one basic account, for example after phishing, can give it administrator rights and reach the data and settings its role was meant to withhold.

How to implement

  1. Map every way a user's permissions or privileges can change.

    List screens, API endpoints, bulk imports and token or claim fields that set roles, groups or privileges, including profile edit functions that write to the same user record.

  2. Block non-administrative users from changing their own privileges.

    Check every role, group or privilege change on the server, or another component users cannot alter, and refuse it unless the caller's role allows it, so no non-administrative user can alter their own. Accept only a fixed list of editable fields in profile updates, so a slipped-in role field is rejected.

  3. Read roles only from data users cannot edit.

    Take them from the server-side record or a token the software signs and verifies, never from hidden form fields, client storage or unsigned token claims. Where roles come from an identity provider, map them from groups users cannot join themselves.

  4. Write negative tests for self-escalation.

    For each path, have a non-administrative test user try to change their own role or privileges through the interface and by direct API calls, and expect refusal (ISM-2062 requires tests of negative use cases). Where a supplier builds the software, make these acceptance tests.

Keep it running

Run the self-escalation tests in every build, and add a case whenever a new profile field, role, API endpoint or identity integration appears. A reported privilege escalation flaw should trigger a review of every path that writes roles, not just the reported one.

Evidence and audit

  1. Check 1 of 3What an auditor asks for

    Ask for

    A test in which a non-administrative user tries to raise their own permissions through the interface and with crafted requests sent straight to the API.

    Look at

    Whether the software refuses each attempt, including a profile update with an added role field and an edited token.

    Good evidence

    Every attempt is refused and the user's permissions are unchanged afterwards, whatever the interface shows or hides.

  2. Check 2 of 3What an auditor asks for

    Ask for

    The list of code paths that change roles, groups or privileges, and a search of the code for every write to those fields.

    Look at

    Whether each write the search finds is on the list and refuses a non-administrative user changing their own profile.

    Good evidence

    Every write found in the code is on the list, and each refuses the change when a non-administrative user targets their own permissions or privileges.

  3. Check 3 of 3What an auditor asks for

    Ask for

    Results of the self-escalation tests from the build of the current release.

    Look at

    Whether a negative test covers each listed path and whether all passed.

    Good evidence

    Each listed path has a negative self-escalation test, and all passed in the build that produced the current release.

Mappings

Closest match in ISO/IEC 27001: A.5.15, Access control, which this control partially meets.

ISO 27001

ISO/IEC 27001: 5 mappings

  • A.5.15Access controlPartially meets
  • A.8.2Privileged access rightsPartially meets
  • A.8.3Information access restrictionPartially meets
  • A.5.3Segregation of dutiesDepends on
  • A.5.18Access rightsDepends on

Mappings show how controls relate across frameworks. They do not imply full equivalence or certification.