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.
-
Null-check the call frame pointer before dereferencing it.
-
Bound alignment padding when calculating workgroup memory size and use one validated calculation.
Seen in 1 report
-
Compare the visibility offset against the device maximum before flushing the command buffer.
Seen in 1 report
-
Cap the array entries and deduplicate repeated amounts before building distributions.
Seen in 1 report
-
Validate input and source vector lengths before array access during signing.
Seen in 1 report
-
Validate and gracefully handle unexpected input in the users field.
-
Remove the longjmp from out-of-memory handling and add a limit on multipart part count.
Seen in 1 report
-
Compare cached feed coverage against the oldest component timestamp.
-
Couple the frozen regime length to the staleness bound and allow the mark to advance while frozen.
-
Cap line length in the format check.
Seen in 1 report
-
Check whether the target path is a symbolic link before creating files.
Seen in 1 report
-
Do not compile user-supplied subscription strings as regular expressions, or escape all metacharacters.
Seen in 1 report
-
Add query cost analysis and limit queries per request.
Seen in 1 report
-
Reject or strip control characters in token names and compare against the displayed value.
Seen in 1 report
-
Bound the scan for a closing bracket so parsing stays linear.
-
Reset the tile update list on every complete surface update regardless of frame identifier.
-
Validate the user-supplied length before copying into the fixed stack buffer.
Seen in 1 report
-
Limit total memory use and concurrency for decompressed input.
Seen in 1 report
-
Enforce rate limits and detect recursive calls from automation scripts.
Seen in 1 report
-
Filter DTLS packets against the address and port validated by ICE.
Seen in 1 report
-
Free the file segment structure when an empty file is processed.
Seen in 1 report
-
Add authentication, resource limits and input handling to device services.
Seen in 1 report
-
Enforce header size limits and timeouts for continuation frames.
Seen in 1 report
-
Validate the packet length field against the maximum buffer size.
Seen in 1 report
-
Wrap form parsing input in a size-limiting reader.
Seen in 1 report
-
Verify that power values come from the legitimate access point before applying them.
-
Account for bits per pixel in the sub-image width calculation.
-
Enforce a reasonable limit on total chunk extension length.
Seen in 1 report
-
Limit the number of queued path responses.
Seen in 1 report
-
Re-check the message size against the maximum after reassembly.
-
Retry or free the packet when a socket write returns would-block.
Seen in 1 report
-
Bounds-check parsed parameters before storing them in the local array.
Seen in 1 report
-
Rate limit the reset endpoint and check the email matches the logged-in user.
Seen in 1 report
-
Check that the event name is a string before passing it to the event emitter.
-
Account for address vector expansion when recompressing.
Seen in 1 report
-
Require authentication for service registration or limit entries.
-
Escape SQL wildcard characters in user input before a LIKE query.
Seen in 1 report
-
Rewrite the directive grammar rule to avoid excessive lookahead.
Seen in 1 report
-
Limit the size of strings produced by the repeat operator.
Seen in 1 report
-
Bound emoji formatting work in comments.
Seen in 1 report
-
Check the uncompressed size of uploaded archives before writing to disk.
Seen in 1 report
-
Read the resident data size through the checked variable.
Seen in 1 report
-
Do not rely on cached RPC security results, or make the check function restricted.
Seen in 1 report
-
Release the critical section on all error paths and fix the session counter and memory leak.
Seen in 1 report
-
Detect loops in certificate chains.
Seen in 1 report
-
Reject empty certificates with a bad length error and check for nil before use.
Seen in 1 report
-
Reject cookies containing control codes in names or values.
Seen in 1 report
-
Limit recursion depth in browse path translation and synchronise node create and delete.
Seen in 1 report
-
Check that the terminal special-character table entry is initialised before dereferencing it.
-
Match reference count increments with decrements and guard against signed overflow.