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.
-
Add bounds checks before reading network, file or device supplied data so parsers cannot read past allocated buffers.
Seen in 43 reports
-
Validate and bound data read by document parsers.
Seen in 22 reports
-
Validate the size and offset of user-supplied data against the buffer before reading.
Seen in 20 reports
-
Initialise and restrict kernel memory objects before returning them to user mode.
Seen in 17 reports
-
Properly initialise, validate and bound memory objects in browser components.
Seen in 17 reports
-
Validate size and structure of user-supplied data before reading.
Seen in 17 reports
-
Validate lengths and offsets of user-supplied data against actual buffer bounds before reading.
Seen in 15 reports
-
Initialise or clear buffers before use and before returning them to callers.
Seen in 14 reports
-
Clear buffers and initialise variables before returning them to callers so stale heap or stack contents are not exposed.
Seen in 13 reports
-
Enforce access checks so lower-privileged local users cannot read memory or data belonging to privileged processes.
Seen in 13 reports
-
Validate the length, type and structure of user-supplied data before reading it.
Seen in 13 reports
-
Validate the size and index of user-supplied data when processing Data Node jobs.
Seen in 12 reports
-
Encrypt or otherwise protect credentials at rest instead of storing them in plaintext.
Seen in 9 reports
-
Initialise or clear memory objects before returning them to callers.
Seen in 9 reports
-
Suppress or generalise product versions in Server, X-Powered-By and Via headers.
Seen in 9 reports
-
Block outbound SMB and UNC requests when resolving file paths, image paths and reminder properties, and warn before external connections.
Seen in 8 reports
-
Disable external entity processing in XML endpoints.
Seen in 8 reports
-
Disable directory listing on web server folders.
Seen in 7 reports
-
Initialise buffers before including them in replies.
Seen in 7 reports
-
Validate the size and structure of user-supplied data before reading in the DGN parser.
Seen in 7 reports
-
Add bounds checks when parsing crafted Office files.
Seen in 6 reports
-
Apply the project's visibility settings to every field and result returned by APIs and search.
Seen in 6 reports
-
Check that data offsets and lengths stay within the allocated buffer.
Seen in 6 reports
-
Enforce access control on every GraphQL field and resolver so private fields are only returned to authorised users.
Seen in 6 reports
-
Initialise and clear memory before use in Office functions.
Seen in 6 reports
-
Remove or block access to .env, .git, .svn and configuration files in the web root.
Seen in 6 reports
-
Require authentication and authorisation before exposing service methods and interfaces on the network.
Seen in 6 reports
-
Validate lengths and indices of user-supplied data before reading into buffers.
Seen in 6 reports
-
Disable directory listing and keep logs, backups and exports outside the web root.
Seen in 5 reports
-
Redact credentials and tokens from API responses and enforce authorisation checks.
Seen in 5 reports
-
Require authentication and authorisation on configuration, metrics and API endpoints.
Seen in 5 reports
-
Return generic error messages without software version or operating system details.
Seen in 5 reports
-
The update corrects how the kernel initialises objects in memory.
Seen in 5 reports
-
Turn off Django DEBUG mode in production.
Seen in 5 reports
-
Validate that file-supplied offsets and lengths stay within the allocated buffer before reading.
Seen in 5 reports
-
Validate the length and structure of user-supplied data in SMB2 requests before reading from buffers.
Seen in 5 reports
-
Validate the size and contents of user-supplied data before reading in the BMP parser.
Seen in 5 reports
-
Deny access to hidden configuration and metadata files at the web server level.
Seen in 4 reports
-
Exclude .git directories from the web root and keep secrets out of public repositories.
Seen in 4 reports
-
Require authentication and authorisation checks before returning sensitive data from endpoints.
Seen in 4 reports
-
Validate lengths and offsets in user-supplied font data before reading from the buffer.
Seen in 4 reports
-
Validate the size and structure of data within 3DS files before reading.
Seen in 4 reports
-
Validate the size and structure of user-supplied data before reading in the DWG parser.
Seen in 4 reports
-
Validate user-supplied data in the feed methods before reading.
Seen in 4 reports
-
Add bounds checks and proper validation in kernel functions.
Seen in 3 reports
-
Add bounds validation on tier object properties in the storage spaces driver.
Seen in 3 reports
-
Check the has-been-password flag as well as the current input type when deciding on secure event input and input method access.
Seen in 3 reports
-
Clean up references to removed groups and filter timeline details when items become public.
Seen in 3 reports
-
Cover the standalone card code type in the save and suggestion exclusions and widen the name blocklist.
Seen in 3 reports
-
Disable debug mode and return generic error messages without schema or path details.
Seen in 3 reports