In-depth lesson · Info disclosure
Typical fixes
Every point the Info disclosure reports back under this heading, best-backed first, each with the reports it is seen in.
-
Check that the thumbnail offset is within the file size before reading, and abort or initialise the buffer when the read returns fewer bytes than expected.
-
Check the caller's scope before serialising the runner registration token.
Seen in 1 report
-
Check the credential's locked state in the API before returning secret material.
Seen in 1 report
-
Check the cross-domain flag before sending a username to the renderer.
Seen in 1 report
-
Check the final response URL rather than the pre-redirect request URL.
Seen in 1 report
-
Check the identity provider's token revocation and end existing sessions.
-
Check the origin of sign-in requests when authority configuration is discovered by default.
-
Check the requester's relationship before resolving an internal identifier to an email address.
-
Check the return value of the external tool and initialise the buffer before copying it into the response.
Seen in 1 report
-
Check the send return value in release builds rather than only with a debug assertion.
Seen in 1 report
-
Check the URL origin and restrict which pages can call the JavaScript bridge.
-
Check the visibility setting of the underlying project's repository before listing packages at group level.
Seen in 1 report
-
Check user-space size and index values against buffer bounds.
Seen in 1 report
-
Check viewer authorisation before embedding asset URLs for private videos and do not vary content by user agent.
Seen in 1 report
-
Check whether an account should see objects before returning a listing.
Seen in 1 report
-
Check whether the caller is allowed to list all users, not just whether they are logged in.
-
Check whether the user has permission to see repository tags before including edit_url in the releases API response.
Seen in 1 report
-
Check whether users are friends before returning sensitive fields like phone numbers in friend request responses.
Seen in 1 report
-
Check who is asking and hide filenames when serving stored files.
-
Check width and height against the size of the image data after the header, not the entire file size.
Seen in 1 report
-
Clear or hide taskbar previews when the screen locks or the device sleeps.
Seen in 1 report
-
Clear or validate memory before returning it to user-mode callers in the NFS ONCRPC XDR driver.
-
Clear the former members edge when the member list is restricted.
Seen in 1 report
-
Clear the SigV4 authentication bit when the parameter string is cleared.
Seen in 1 report
-
Compare secret tokens in constant time rather than through an indexed lookup.
Seen in 1 report
-
Compute the result count after access filtering so the badge does not reveal restricted content.
Seen in 1 report
-
Configure a valid certificate covering the images subdomain on the reverse proxy.
-
Configure SharePoint web services to require authentication and not be accessible to anonymous users.
Seen in 1 report
-
Configure the web server to block access to the Laravel environment file.
-
Convert internationalised domain names to punycode before displaying user-supplied URLs.
Seen in 1 report
-
Copy the attr() taint flag when rebuilding custom property data.
Seen in 1 report
-
Correct how credential information is stored and transmitted.
Seen in 1 report
-
Correct how file redirections are handled in the Projected Filesystem.
Seen in 1 report
-
Cover the Grafana metrics endpoint with the same authentication changes applied to the Grafana dashboard.
Seen in 1 report
-
Decide challenge ownership by more than the status code so proxy challenges do not poison origin auth state.
Seen in 1 report
-
Decode common encodings before inspecting for sensitive data.
Seen in 1 report
-
Derive the credential search key from the committed origin rather than the document URL.
Seen in 1 report
-
Detach the fork relationship when a project's visibility is changed to private.
-
Disable anonymous FTP access and avoid storing plaintext credentials in publicly accessible directories.
Seen in 1 report
-
Disable detailed error reporting on beta environments.
-
Disable DNS prefetching on links rendered in the developer tools console.
-
Disable introspection and remove deprecated root-level nodes.
Seen in 1 report
-
Disable introspection in production and add authentication and authorisation to bulk extraction queries.
-
Disable LOAD DATA LOCAL in the MySQL client configuration so a user-controlled database server cannot request local files.
Seen in 1 report
-
Disable or protect Actuator endpoints in production.
-
Disable or restrict the debug trace report feature to administrators.
Seen in 1 report
-
Disable or restrict the users route so it does not return user data to unauthenticated requests.
-
Disable public read and directory listing on upload buckets.
Seen in 1 report
-
Disable rasterizer discard before the frame-end copy draw.
Seen in 1 report
-
Disable remote access to the error log endpoint or put authentication and IP restriction in front of it.