Skip to content

In-depth lesson · Memory corruption

Tips for beginners

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

Back to the lesson 1 to 12 of 12
  1. Start with parsers you can drive yourself. Desktop viewers and editors that open many legacy formats are the richest ground, because each format is a separate attack surface and the code often trusts fields inside the file. Pick one application and one format, and learn its structure before you mutate anything.

    Seen in 6 reports
  2. Focus on length, size, offset and count fields. These are where bounds checks go missing. Vary one field at a time, make it larger than the actual data, negative, or inconsistent with another field, and watch for crashes or memory errors. A crash alone is a lead, not a finding; you need to show what memory was affected.

    Seen in 6 reports
  3. For local privilege escalation, look at kernel-mode drivers and services reachable from a low-privileged user. Exercise IOCTL handlers and object lifetime paths with crafted input and check whether a use-after-free, double free or heap overflow lets you gain higher privileges. Prove the elevation, not just the crash.

    Seen in 6 reports
  4. For network services, test without credentials first. Send crafted requests to handlers that copy input into fixed buffers and look for overflows. If the service is reachable without authentication, that raises the severity, but confirm the impact rather than reporting a bare crash.

    Seen in 6 reports
  5. Remember the preview pane and reading pane. Many document parsers are reached without the user fully opening the file, which changes the threat model and the impact. Test both the full-open path and the preview path, because some flaws trigger only in one.

    Seen in 6 reports
  6. When you suspect a lifetime bug, look for race conditions. If an advisory or code path mentions concurrency, repeat the operation concurrently to widen the window between free and reuse. A use-after-free that only appears under timing pressure is still valid, but you must show a reliable trigger.

    Seen in 6 reports
  7. Use the same parser family across formats. Fixing one format often leaves sibling parsers untouched, so a bug you find in one format may have equivalents in others. Test the whole family rather than stopping at the first crash.

    Seen in 6 reports
  8. For browser and scripting engine work, stress object lifetime and type handling. Crafted pages that confuse object types or free objects while they are still referenced are a recurring source of memory corruption. Narrow down which feature triggers it before reporting.

    Seen in 6 reports
  9. For file system and disk image work, mount crafted images and look for out-of-bounds reads and writes in the drivers that parse on-disk structures. These are high-value because they can be reached by mounting media, but they require care to reproduce safely.

    Seen in 6 reports
  10. Document your reproduction precisely: the exact component, version, input class and the observed memory effect. Avoid pasting payloads or exact strings into a public report; describe the structure and the field that matters. A clear, minimal reproduction is worth more than a large fuzzing corpus.

    Seen in 6 reports
  11. Show impact, not just a fault. A crash in a parser may be a denial of service at best. To make a strong report, demonstrate a controlled write, an information leak that defeats a mitigation, or a privilege change. If you can only show a crash, say so honestly and explain the limited impact.

    Seen in 5 reports
  12. Check scope before you invest. Some components are explicitly out of scope, and a finding in an unsupported version or a third-party plugin may be rejected. Confirm the target, version and component are covered by the programme's policy before writing up.

    Seen in 5 reports