Skip to content

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.

Back to the lesson 1 to 50 of 551
  1. Add bounds checks before reading network, file or device supplied data so parsers cannot read past allocated buffers.

    Seen in 43 reports
  2. Validate and bound data read by document parsers.

    Seen in 22 reports
  3. Validate the size and offset of user-supplied data against the buffer before reading.

    Seen in 20 reports
  4. Initialise and restrict kernel memory objects before returning them to user mode.

    Seen in 17 reports
  5. Properly initialise, validate and bound memory objects in browser components.

    Seen in 17 reports
  6. Validate size and structure of user-supplied data before reading.

    Seen in 17 reports
  7. Validate lengths and offsets of user-supplied data against actual buffer bounds before reading.

    Seen in 15 reports
  8. Initialise or clear buffers before use and before returning them to callers.

    Seen in 14 reports
  9. Clear buffers and initialise variables before returning them to callers so stale heap or stack contents are not exposed.

    Seen in 13 reports
  10. Enforce access checks so lower-privileged local users cannot read memory or data belonging to privileged processes.

    Seen in 13 reports
  11. Validate the length, type and structure of user-supplied data before reading it.

    Seen in 13 reports
  12. Validate the size and index of user-supplied data when processing Data Node jobs.

    Seen in 12 reports
  13. Encrypt or otherwise protect credentials at rest instead of storing them in plaintext.

    Seen in 9 reports
  14. Initialise or clear memory objects before returning them to callers.

    Seen in 9 reports
  15. Suppress or generalise product versions in Server, X-Powered-By and Via headers.

    Seen in 9 reports
  16. Block outbound SMB and UNC requests when resolving file paths, image paths and reminder properties, and warn before external connections.

    Seen in 8 reports
  17. Disable external entity processing in XML endpoints.

    Seen in 8 reports
  18. Disable directory listing on web server folders.

    Seen in 7 reports
  19. Initialise buffers before including them in replies.

    Seen in 7 reports
  20. Validate the size and structure of user-supplied data before reading in the DGN parser.

    Seen in 7 reports
  21. Add bounds checks when parsing crafted Office files.

    Seen in 6 reports
  22. Apply the project's visibility settings to every field and result returned by APIs and search.

    Seen in 6 reports
  23. Check that data offsets and lengths stay within the allocated buffer.

    Seen in 6 reports
  24. Enforce access control on every GraphQL field and resolver so private fields are only returned to authorised users.

    Seen in 6 reports
  25. Initialise and clear memory before use in Office functions.

    Seen in 6 reports
  26. Remove or block access to .env, .git, .svn and configuration files in the web root.

    Seen in 6 reports
  27. Require authentication and authorisation before exposing service methods and interfaces on the network.

    Seen in 6 reports
  28. Validate lengths and indices of user-supplied data before reading into buffers.

    Seen in 6 reports
  29. Disable directory listing and keep logs, backups and exports outside the web root.

    Seen in 5 reports
  30. Redact credentials and tokens from API responses and enforce authorisation checks.

    Seen in 5 reports
  31. Require authentication and authorisation on configuration, metrics and API endpoints.

    Seen in 5 reports
  32. Return generic error messages without software version or operating system details.

    Seen in 5 reports
  33. The update corrects how the kernel initialises objects in memory.

    Seen in 5 reports
  34. Turn off Django DEBUG mode in production.

    Seen in 5 reports
  35. Validate that file-supplied offsets and lengths stay within the allocated buffer before reading.

    Seen in 5 reports
  36. Validate the length and structure of user-supplied data in SMB2 requests before reading from buffers.

    Seen in 5 reports
  37. Validate the size and contents of user-supplied data before reading in the BMP parser.

    Seen in 5 reports
  38. Deny access to hidden configuration and metadata files at the web server level.

    Seen in 4 reports
  39. Exclude .git directories from the web root and keep secrets out of public repositories.

    Seen in 4 reports
  40. Require authentication and authorisation checks before returning sensitive data from endpoints.

    Seen in 4 reports
  41. Validate lengths and offsets in user-supplied font data before reading from the buffer.

    Seen in 4 reports
  42. Validate the size and structure of data within 3DS files before reading.

    Seen in 4 reports
  43. Validate the size and structure of user-supplied data before reading in the DWG parser.

    Seen in 4 reports
  44. Validate user-supplied data in the feed methods before reading.

    Seen in 4 reports
  45. Add bounds checks and proper validation in kernel functions.

    Seen in 3 reports
  46. Add bounds validation on tier object properties in the storage spaces driver.

    Seen in 3 reports
  47. 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
  48. Clean up references to removed groups and filter timeline details when items become public.

    Seen in 3 reports
  49. Cover the standalone card code type in the save and suggestion exclusions and widen the name blocklist.

    Seen in 3 reports
  50. Disable debug mode and return generic error messages without schema or path details.

    Seen in 3 reports