low · M7 · MASVS-RESILIENCE-1 · PTKD-BIN-NOCANARY

    Executable built without stack canaries

    No stack-protector symbols were found, so stack-buffer overflows are not detected at runtime.

    How it is exploited

    Missing stack canaries (__stack_chk_guard) means a stack buffer overflow overwrites the return address without tripping a check, making classic smash-the-stack exploitation viable again.

    Why it matters

    Native-code overflow bugs become straightforwardly exploitable instead of crashing safely.

    How to fix it

    1. Compile with -fstack-protector-strong (Xcode/NDK default; check custom Makefiles and third-party .so/.dylib files).
    2. Rebuild or replace vendored native libraries that lack canaries.

    Does your app have this?

    PTKD checks your build or your source project for PTKD-BIN-NOCANARY and every other check in this knowledge base.

    Scan your app

    References

    Related checks (M7)