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.
-
Force a password change at install or first login and remove default and test accounts from production.
-
Put an authorisation filter in front of admin and job dashboards instead of relying on obscurity.
-
Call an explicit authorisation check in every mutation and restrict fields by role.
-
Store identity and authentication state per request or stream, and include it in connection matching.
-
Validate or whitelist external call targets and restrict which functions forwarding hooks may call.
-
Enforce authentication and authorisation on the server for both viewing and submitting protected forms.
-
Confirm the tracker belongs to the authenticated account before deleting it.
-
Ignore client-supplied role fields at registration and assign roles server-side.
-
Enable row-level security policies on every table exposed through the public API key.
-
Apply the same access-control rules to QA environments as production and avoid pulling live production data.
-
Do not base OLE mitigation decisions on untrusted document data.
-
Assign restrictive permissions to folders created by the installer.
-
Check the live frame and confirm the last committed navigation is not an error document before granting content-script identity.
Seen in 2 reports
-
Do not return the session key before the password proof, and compare RPC context handles to the requesting connection.
-
Validate symbolic links before performing privileged operations on folders.
-
Fix the authentication logic error in the directory service reachable over LDAP.
-
Remove the registry value that enables NTLM authentication over the loopback adapter.
Seen in 1 report
-
Re-check the user's current project membership and role before showing alert-related TODOs.
Seen in 1 report
-
Invalidate existing session records when an account is disabled.
Seen in 1 report
-
Trim leading whitespace before extracting the protocol from a URL.
Seen in 1 report
-
Normalise and decode the request path before setting the headers passed to the external auth service.
-
Restrict or timelock controller replacement and cap what the migration and utilise paths can move.
Seen in 1 report
-
Put an upper bound on the cooldown period so it cannot overflow or lock funds.
Seen in 1 report
-
Clear single-token approvals on every key transfer, not only when the key manager changes.
Seen in 1 report
-
Add an access-control modifier to the initialise function.
Seen in 1 report
-
Verify that the permit signer matches the message sender before running multicall actions.
-
Verify that the caller is authorised to act for the reference account before pulling deposits from it.
Seen in 1 report
-
Correct the branch conditions in the redundant withdrawal function so it cannot transfer the whole token balance.
Seen in 1 report
-
Require additional authorisation before a trusted account can remove other trusted accounts.
Seen in 1 report
-
Add an access-control check to the launch event factory function.
-
Enforce the collateral ratio check in the privileged withdrawal function.
Seen in 1 report
-
Restrict the resume function so liquidity providers cannot unlock the pool during the paying-out period.
-
Guard the factory address setter and migrate existing vault and asset data when it changes.
Seen in 1 report
-
Provide an alternative path for users to trigger withdrawals if key holders lose access.
Seen in 1 report
-
Prevent the owner from minting without staking before ownership is transferred.
Seen in 1 report
-
Require authentication and authorisation on the backend calendar events endpoint and tie the CSRF token to a logged-in session.
Seen in 1 report
-
Require authentication and authorisation on the delete endpoint and avoid predictable sequential identifiers.
Seen in 1 report
-
Require an administrator account in addition to a valid security token.
Seen in 1 report
-
Make the package access check inherit the repository restriction setting.
-
Enforce project authorisation on the Composer package archive endpoint.
Seen in 1 report
-
Enforce protected tag rules in the pull mirroring path as well as the push path.
Seen in 1 report
-
Enforce the stricter trace permission when debug logging is enabled.
Seen in 1 report
-
Check the CI job token against the wiki's visibility setting.
Seen in 1 report
-
Look up personal access tokens by their secret value rather than by numeric ID and user ID.
-
Compare branch names with an exact match against the allowed list.
Seen in 1 report
-
Update imported project membership records when a group member's role is downgraded.
-
Require the acting user to own a scheduled pipeline before allowing edits.
Seen in 1 report
-
Check whether files referenced by shortcuts have been deleted or restricted before including them in a folder download.
Seen in 1 report
-
Enforce bank verification status server-side instead of trusting a client-supplied parameter.
Seen in 1 report
-
Add authorisation checks to the user photo module part before serving attached files.
Seen in 1 report