In-depth lesson · Memory corruption
Bypasses and variations
Every point the Memory corruption reports back under this heading, best-backed first, each with the reports it is seen in.
-
Chain a use-after-free in a browser component with existing low-privileged code to escape the Chromium sandbox.
-
Chain two kernel flaws so the page-cache write reaches a setuid binary even where distributions have applied hardening.
-
Change the resource index passed to the delete selector so a different resource than intended is freed and later reused in a graphics kernel extension.
-
Choose a count large enough that the size multiplication wraps and passes the file-size check.
Seen in 2 reports
-
Copy an attachment in Outlook and have another application process it to trigger the flaw.
-
Deliver a short-lived legitimate-looking link in a personalised email so the victim opens the malicious page without a download.
-
Deliver the malicious map through a game server or the Workshop rather than local files.
Seen in 2 reports
-
Drive an index to the reserved deleted sentinel so the entry is silently dropped during rehashing.
Seen in 2 reports
-
Exploitation needs complex heap or memory shaping, so vary allocation patterns to control layout.
-
Force an exception during package processing so the cleanup path runs and frees an object still in use.
-
Invoking sudoedit with the shell option sets edit and shell modes together, avoiding the run mode that would apply the escaping.
-
Pairing a malicious Bluetooth device is enough to reach the head unit's vulnerable decoders without further authentication.
-
Raise the application's raw memory limit above the default so the pre-decoder check passes before the overflow.
-
Reach different vulnerable functions in the same CGI by changing the page parameter and the repeater type value.
Seen in 2 reports
-
Reach the decoder through any pre-authentication path that decodes attacker input, such as a login endpoint, before the input is validated.
-
Remote Desktop Client flaws need specific protocol settings or configurations in place before exploitation succeeds.
-
Send a bind request first to reach the proper state of the state machine before the MAYBE call request.
-
Send mail with a forged sender from a domain that publishes no DMARC policy so receivers have nothing to enforce.
Seen in 2 reports
-
Send the malicious commands from a guest virtual machine to reach the host.
-
Send the unregister or destroy command and the follow-up buffer command in the same batch so the wire server processes them in order.
Seen in 2 reports
-
Serve media in small chunks or with unusual sizes to force the decoder onto a non-contiguous path.
Seen in 2 reports
-
Set a bytes-per-line value larger than the size implied by width and depth to defeat the allocation calculation.
-
Set the MAYBE flag on a DCERPC call request to reach the uninitialised length field.
-
Some .NET flaws require the user to trigger the payload inside the application before the memory corruption is reached.
Seen in 2 reports
-
Some flaws are only reachable through a physical attack, such as the NTFS over-read that leaks a byte of kernel memory.
-
Spray executable memory through the JIT so ASLR and DEP are bypassed without an information leak or code reuse.
Seen in 2 reports
-
The out-of-bounds read can leak memory and aid in bypassing mitigations such as ASLR.
-
The PDF reader bug could be reached through the browser plugin as well as by opening the file directly.
-
The SQL Server heap overflow is only reachable when XA transactions are enabled, a setting the attacker cannot change.
-
The target needs enough free memory to process a large crafted message, so size the input accordingly.
-
Trigger the fault through an authenticated login rather than pre-auth.
-
Trigger the flaw by previewing a message in the Reading Pane rather than fully opening it.
-
Trigger the overflow through a remote server response rather than a direct request, by impersonating the video host or a smart camera.
-
Trigger the same freed-entry pattern through the remove leg of the event interface after the update leg was already fixed.
-
Triggering the bug through automatic processing such as email attachment handling or thumbnail generation rather than a deliberate open.
Seen in 2 reports
-
Triggering thumbnail or preview generation by browsing a folder is enough to reach the Raw Image Extension overflow, without opening the file.
-
Use a cyclic pattern to find the offset to the SEH structure, then control the next SEH record and handler address.
Seen in 2 reports
-
Use a malicious game server to send negative class ids and out-of-range entity indexes to the client.
Seen in 2 reports
-
Use a nested message loop inside a callback to free an object that the caller still holds.
Seen in 2 reports
-
Use an atom length below the fixed header size so the subtraction wraps to a very large value.
-
Use an invalid dateTime value with malformed back-of or front-of directives to reach the out-of-bounds read.
Seen in 2 reports
-
Use physical access to reach kernel-mode drivers and Bluetooth driver flaws.
-
Use TCP and name compression to build a SIG record larger than 64KB so the 16-bit size calculation wraps.
Seen in 2 reports
-
WebDAV bugs let a local attacker create or delete files as LOCAL SERVICE.
-
A 32-bit conditional jump after setting a wide unsigned range gets around the verifier's known-bits tracking in the eBPF verifier.
-
A beforematch listener on a hidden-until-found element spins a nested loop to detach the frame during Chrome Glic actor initialisation.
Seen in 1 report
-
A binary without stack canaries or PIE allows a single-shot ROP chain after the overflow in NAS exploitation.
Seen in 1 report
-
A buffer overflow in AppleFDEKeyStore lets a local attacker corrupt kernel memory.
-
A buffer overflow in disk image handling lets a user corrupt kernel memory.
-
A buffer overflow in HFS disk image handling lets a user corrupt kernel memory.