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.
-
Validate and sanitise the SIP Address field.
Seen in 1 report
-
Enforce role requirements set at the action namespace level.
Seen in 1 report
-
Use exact path matching rather than flawed string matching in the access check.
Seen in 1 report
-
Verify that the process writing to the release agent file holds the admin capability in the initial user namespace.
Seen in 1 report
-
Verify the actual code or image digest of allowlisted workloads, not just the command and image name.
Seen in 1 report
-
Issue SAS tokens with least privilege and short expiry, and avoid exposing them in public URLs.
-
Check who is calling the on-premise configuration server APIs.
Seen in 1 report
-
Load scanner files only from locations not writable by low-privileged users and validate their integrity.
-
Enforce a permission check in the default Bluetooth device chooser when no custom handler is configured.
Seen in 1 report
-
Apply the same localhost navigation blocking to QR code scans as to other navigation paths.
Seen in 1 report
-
Re-check the lock on every resume, including resumes from the launcher's app-info screen.
Seen in 1 report
-
Ignore call activities when computing the auto-lock timer.
Seen in 1 report
-
Block join pages from search engine indexing and require an invitation to join.
-
Enforce feature gating on the server rather than only in the user interface.
Seen in 1 report
-
Add the missing authorisation check so low-privileged users cannot perform higher-privileged actions.
-
Address the machine account name spoofing and Kerberos PAC validation flaws together.
Seen in 1 report
-
Correct the Protected View logic so crafted documents cannot skip the risk warning.
Seen in 1 report
-
Restrict how low-privileged users can run tcpdump through privileged wrappers.
-
Do not let cross-origin documents in embed elements inherit the top-level site's permission grants.
Seen in 1 report
-
Make the disable function actually prevent a user from re-enabling their own rights.
Seen in 1 report
-
Check that the appointment belongs to the logged-in customer before returning its details.
Seen in 1 report
-
Restrict upload destinations and allowed file extensions.
Seen in 1 report
-
Make invitation links single-use and expire them.
Seen in 1 report
-
Derive permissions from the stored user record rather than from client-supplied role data.
-
Validate that identifier arguments are plain strings and reject query operators or regex objects.
Seen in 1 report
-
Apply IP allowlists consistently across every domain and route that serves the same content.
-
Use the caller's address as the source in deposit functions instead of accepting an arbitrary source parameter.
Seen in 1 report
-
Reject plugin installation when the selector is already in use.
Seen in 1 report
-
Apply the same caller permission checks in the fallback function as in the execute function.
Seen in 1 report
-
Use the correct logical condition in permit so a zero recovered address is rejected.
-
Add zero-address validation and a two-step transfer process for privileged roles.
Seen in 1 report
-
Build trades with the vault's own address as recipient and enforce a meaningful minimum buy amount.
Seen in 1 report
-
Apply the same account restriction on the liquidation path as on the normal vault entry function.
-
Preserve redemption rights for holders of the previous token when replacing a project's token.
Seen in 1 report
-
Allow the owner, not only the current fee manager, to replace the fee manager.
Seen in 1 report
-
Enforce the triggering user's permissions when a CI job clones private submodules.
Seen in 1 report
-
Add a caller check to the commit function so only the bid owner or an authorised party can add collateral.
Seen in 1 report
-
Verify that the new lender in an updated commitment matches the original lender.
Seen in 1 report
-
Restrict defaulted-loan withdrawal to the lender.
-
Refund all reward tokens, not just one, when closing a position.
Seen in 1 report
-
Check that the requesting client's source address matches the target host in add and delete requests.
Seen in 1 report
-
Revoke existing token approvals when a club token is transferred.
-
Enforce authorisation checks on the contents of certificate requests.
-
Add an authorisation check before the endpoint returns privileged data.
Seen in 1 report
-
Reject duplicate query parameters and normalise casing before verification.
Seen in 1 report
-
Keep wrapper state in sync when the old controller registers names.
-
Preserve the old owner information before burning the node during an upgrade.
-
Verify in the callback that the flash loan was initiated by the contract itself.
-
Show all pending invitations to the owner and expire or revoke invite links.
Seen in 1 report
-
Check the caller's permissions on client-supplied role and user identifiers, and sanitise combined tags in chat.
Seen in 1 report