In-depth lesson · Access control
Typical fixes
Every point the Access control reports back under this heading, best-backed first, each with the reports it is seen in.
-
Resolve and validate link targets before privileged file operations, and refuse to act on links pointing outside the intended directory.
Seen in 10 reports
-
Check the caller's privileges and identity before invoking privileged service functions.
Seen in 10 reports
-
Verify the requester's rights before granting access to APEX workspace administration functionality.
Seen in 8 reports
-
Add caller checks to every state-changing function and enforce non-zero privileged addresses in constructors.
Seen in 7 reports
-
Enforce role and ownership checks on the server for every request rather than relying on client-side flags or hidden UI.
Seen in 7 reports
-
Vendors added entitlement checks, tightened sandbox profiles, improved path validation and re-validated caller access.
Seen in 7 reports
-
Enforce the same role checks in GraphQL resolvers and mutations that the web interface enforces.
Seen in 6 reports
-
Tighten file system permissions and validate paths so services do not follow links or load modules from user-writable locations.
Seen in 6 reports
-
Resolve and validate the real target path before creating or deleting files, and reject junctions, symbolic links and DOS device redirections.
Seen in 5 reports
-
Add the missing entitlement and permission checks in the affected frameworks.
Seen in 5 reports
-
Only check the migrator role when granting a permit, and allow the user to clear a permit at any time regardless of the migrator's current role.
Seen in 5 reports
-
Clear stored permits when a migrator's role is revoked, and clear the permit after a successful migration.
Seen in 5 reports
-
Revoke each resource scope individually rather than building one revocation for the first non-root name.
Seen in 5 reports
-
Correctly verify the caller's permissions before returning information or granting access in cloud services.
Seen in 5 reports
-
Enforce the required role or permission level server-side on every endpoint, including child routes and internal endpoints.
Seen in 4 reports
-
Initialise implementation contracts and add re-initialisation guards and zero-address checks to initialise functions.
Seen in 4 reports
-
Add timelocks, amount limits and recipient restrictions to admin functions that move or mint tokens.
Seen in 4 reports
-
Derive the user and role from the server-side session rather than from client-supplied fields, identifiers or headers.
Seen in 4 reports
-
Enforce authorisation on every HTTP method and every path variant of an endpoint, not just the one the UI uses.
Seen in 4 reports
-
Validate symbolic link targets before privileged file operations.
Seen in 3 reports
-
Remove hard-coded credentials and header values and require proper authentication.
Seen in 3 reports
-
Authenticate local service commands and verify their origin before dispatching them.
Seen in 3 reports
-
Validate the caller and the payment token in the transfer function, and use OR in the settlement access check.
Seen in 3 reports
-
Enforce the same role and IP restrictions on GraphQL mutations as on the UI paths.
Seen in 3 reports
-
Remove or restrict the dangerous function exposed by the listener service.
Seen in 3 reports
-
Parse parameters once in a single place and use the same parsed value for both authorisation and lookup.
Seen in 3 reports
-
Load helpers and modules from secured locations that lower-privileged users cannot write to.
Seen in 3 reports
-
Replace fixed, shared credentials with unique per-device or user-set secrets.
Seen in 3 reports
-
Check the account expiry status returned by PAM in addition to the password.
Seen in 2 reports
-
Include the authentication parameters in the connection cache key so a connection is not reused across different tokens.
Seen in 2 reports
-
Tie preview links to the current storefront password and user session so they expire when either changes.
Seen in 2 reports
-
Do not let a registry-listed market move tokens from arbitrary users or assign credit to arbitrary beneficiaries.
-
Guard delegatecall targets so they cannot modify the vault's storage, and check all critical state after the call.
Seen in 2 reports
-
Restrict burn functions to the caller's own balance.
Seen in 2 reports
-
Update the current operator list during batch execution and invalidate old operator sets after transfer.
-
Tighten the access control list and configuration of privileged services so low-privileged users cannot modify them.
-
Load configuration and DLLs only from protected locations and restrict the DLL search path.
-
Compare the caller rather than the receiver in the authority check, and accept per-token approvals.
Seen in 2 reports
-
Include approved operators as valid callers in owner-only actions and liquidation checks.
-
Verify that a node is wrapped before burning fuses and do not trust registry ownership alone for registration state.
-
Do not let a third party set the delegate for a contributor, and check the caller rather than the contributor against the allowlist.
-
Revoke all sessions server-side on logout and password change, and invalidate older sessions on new login.
-
Apply the emergency pause modifier to every dangerous function, including withdrawals.
-
Strip or reject internal-only headers at the edge and never trust client-supplied rewrite instructions.
-
Check authorisation on each child entity, not only the parent object, and disable introspection where not needed.
-
Check the current observer or validator status rather than node account existence or tombstone status alone.
Seen in 2 reports
-
Correct privilege management so authorised users cannot perform actions beyond their role.
-
Restrict file names and paths used by privileged components so they cannot be influenced by low-privileged users.
-
Check where a link really points before a privileged file operation acts on it.
-
Stop execution when issuing a redirect so the protected page is never generated for unauthenticated users.