Skip to content

In-depth lesson · DoS

Typical fixes

Every point the DoS reports back under this heading, best-backed first, each with the reports it is seen in.

Back to the lesson 201 to 250 of 254
  1. Null-check the call frame pointer before dereferencing it.

    Seen in 1 report
  2. Bound alignment padding when calculating workgroup memory size and use one validated calculation.

    Seen in 1 report
  3. Compare the visibility offset against the device maximum before flushing the command buffer.

    Seen in 1 report
  4. Cap the array entries and deduplicate repeated amounts before building distributions.

    Seen in 1 report
  5. Validate input and source vector lengths before array access during signing.

    Seen in 1 report
  6. Validate and gracefully handle unexpected input in the users field.

    Seen in 1 report
  7. Remove the longjmp from out-of-memory handling and add a limit on multipart part count.

    Seen in 1 report
  8. Couple the frozen regime length to the staleness bound and allow the mark to advance while frozen.

    Seen in 1 report
  9. Cap line length in the format check.

    Seen in 1 report
  10. Check whether the target path is a symbolic link before creating files.

    Seen in 1 report
  11. Do not compile user-supplied subscription strings as regular expressions, or escape all metacharacters.

    Seen in 1 report
  12. Add query cost analysis and limit queries per request.

    Seen in 1 report
  13. Reject or strip control characters in token names and compare against the displayed value.

    Seen in 1 report
  14. Bound the scan for a closing bracket so parsing stays linear.

    Seen in 1 report
  15. Reset the tile update list on every complete surface update regardless of frame identifier.

    Seen in 1 report
  16. Validate the user-supplied length before copying into the fixed stack buffer.

    Seen in 1 report
  17. Limit total memory use and concurrency for decompressed input.

    Seen in 1 report
  18. Enforce rate limits and detect recursive calls from automation scripts.

    Seen in 1 report
  19. Filter DTLS packets against the address and port validated by ICE.

    Seen in 1 report
  20. Free the file segment structure when an empty file is processed.

    Seen in 1 report
  21. Add authentication, resource limits and input handling to device services.

    Seen in 1 report
  22. Enforce header size limits and timeouts for continuation frames.

    Seen in 1 report
  23. Validate the packet length field against the maximum buffer size.

    Seen in 1 report
  24. Wrap form parsing input in a size-limiting reader.

    Seen in 1 report
  25. Verify that power values come from the legitimate access point before applying them.

    Seen in 1 report
  26. Account for bits per pixel in the sub-image width calculation.

    Seen in 1 report
  27. Enforce a reasonable limit on total chunk extension length.

    Seen in 1 report
  28. Limit the number of queued path responses.

    Seen in 1 report
  29. Re-check the message size against the maximum after reassembly.

    Seen in 1 report
  30. Retry or free the packet when a socket write returns would-block.

    Seen in 1 report
  31. Bounds-check parsed parameters before storing them in the local array.

    Seen in 1 report
  32. Rate limit the reset endpoint and check the email matches the logged-in user.

    Seen in 1 report
  33. Check that the event name is a string before passing it to the event emitter.

    Seen in 1 report
  34. Account for address vector expansion when recompressing.

    Seen in 1 report
  35. Require authentication for service registration or limit entries.

    Seen in 1 report
  36. Escape SQL wildcard characters in user input before a LIKE query.

    Seen in 1 report
  37. Rewrite the directive grammar rule to avoid excessive lookahead.

    Seen in 1 report
  38. Limit the size of strings produced by the repeat operator.

    Seen in 1 report
  39. Bound emoji formatting work in comments.

    Seen in 1 report
  40. Check the uncompressed size of uploaded archives before writing to disk.

    Seen in 1 report
  41. Read the resident data size through the checked variable.

    Seen in 1 report
  42. Do not rely on cached RPC security results, or make the check function restricted.

    Seen in 1 report
  43. Release the critical section on all error paths and fix the session counter and memory leak.

    Seen in 1 report
  44. Detect loops in certificate chains.

    Seen in 1 report
  45. Reject empty certificates with a bad length error and check for nil before use.

    Seen in 1 report
  46. Reject cookies containing control codes in names or values.

    Seen in 1 report
  47. Limit recursion depth in browse path translation and synchronise node create and delete.

    Seen in 1 report
  48. Check that the terminal special-character table entry is initialised before dereferencing it.

    Seen in 1 report
  49. Match reference count increments with decrements and guard against signed overflow.

    Seen in 1 report