דילוג לתוכן
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
noorqureshi/code-review-cppWeb ו-bug bounty

code-review-cpp

⁨Security review of C / C++ code — memory-safety and the classic unsafe-API sinks. Load when reviewing C/C++ source/PR, on .c/.cc/.cpp/.h in scope, or "review this C code". Signals: Makefile/CMakeLists, strcpy/sprintf/memcpy, malloc/free, raw pointers, format strings, parsers.⁩

v2026.10.14-ee0e0c53 התקנות⁦+3⁩ ב-7 ימים27 כוכביםMITסונכרן לפני 23 שעות

התקנה

עדיין אין לכם את ה-CLI של NotHoly? התקינו אותו קודם.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install noorqureshi/code-review-cpp

נכתב אל ⁦~/.notholy/skills⁩ אחרי בדיקת החתימה וה-SHA-256.

חתימהחתום, ed25519
T/Lo6okCaT…Uo9fv3Ag==ה-CLI בודק את ה-SHA-256 ואת החתימה לפני שהוא כותב קובץ כלשהו.
חבילה0fe75f4c…55fb5ea5
0fe75f4cd96f…d74355fb5ea5קובץ אחד · ⁦1.7 KB⁩
סריקהנמוךאין ממצאים
הסריקה לא מצאה בגרסה הזו שום דבר שצריך לסמן.לסריקה המלאה
מקורgithub.com/NoorQureshi/security-skills/tree/main/skills/code-review/code-review-cpp@ee0e0c5

הפריט הזה עדיין לא נכתב בעברית, ולכן הוא מוצג בשפה אחרת: English.

When it applies

Reviewing native C/C++ (a service, a parser, a library). The bugs are overwhelmingly memory safety — the highest-impact, most exploitable class — plus the handful of unsafe APIs that cause them.

Why it works

C/C++ has no bounds checking: a length mistake, a lifetime mistake, or attacker-controlled format string becomes a memory-corruption primitive. Most of these trace to a small, greppable set of APIs and patterns, and sanitizers/fuzzing confirm the ones static reading only suspects.

Sinks & patterns (grep, then reason about lengths and lifetimes)

  • Buffer overflow: strcpy, strcat, sprintf, gets, scanf("%s"), memcpy/memmove with an unchecked or attacker-influenced length; fixed stack buffers filled from input.
  • Format string: printf(user), fprintf(f, user), syslog(user) — user data as the format arg.
  • Integer issues: size/length arithmetic that can overflow or go negative and then feeds an allocation or copy (malloc(n*size), len-1); signed/unsigned confusion in bounds checks.
  • Use-after-free / double-free: free then use; ownership unclear across functions; dangling pointers after realloc; C++ iterator invalidation, dangling references, std::move misuse.
  • Off-by-one / OOB: <= in loop bounds, missing NUL terminator, strncpy not null-terminating.
  • Command/path: system/popen/exec* with concatenated input; unchecked ../ in path handling.
  • C++ specifics: unchecked .at() vs [], unsafe reinterpret_cast, deserialization of untrusted data into objects, std::string↔C-string length mistakes.

Method

  1. Run clang --analyze/cppcheck and semgrep; treat as leads.
  2. rg 'strcpy|strcat|sprintf|gets|memcpy|system\(|printf\s*\([^"]' and, for each, trace the size and the source of the data.
  3. For every allocation/copy, check the length's origin and arithmetic for overflow.
  4. Where reachable with input, confirm with a fuzzer + ASan (libFuzzer/AFL++) — a crash under ASan is proof; escalate to exploit-memory-corruption for exploitability.

Gotchas

  • A crash isn't automatically exploitable, but under ASan it's a real memory-safety bug worth reporting.
  • Modern C++ (std::span, std::string_view, smart pointers) reduces but doesn't remove these — raw buffers and FFI boundaries are where they persist.
  • strncpy/snprintf are safer but have their own truncation/termination traps — read the lengths.

References

CERT C/C++ Coding Standard; OWASP C-Based Toolchain hardening; ASan/libFuzzer docs.

הקבצים בגרסה הזו

הרשאות

הרשאההוצהרנמצא בסריקה
קורא קבציםלאלא
כותב קבציםלאלא
מריץ פקודות shellלאלא
משתמש ברשתלאלא
משתמש במחבריםלאלא
שולט בדפדפןלאלא

ממצאי הסריקה

נבדק ב-13 בנוב׳ 2026

הסריקה לא מצאה בגרסה הזו שום דבר שצריך לסמן.

סריקה נקייה מורידה את הסיכון, אבל לא מוכיחה שהחבילה בטוחה. כדאי לקרוא מה מתקינים.

גרסהפורסמהCommitSHA-256חתימהשינוי בהרשאות
v2026.10.14-ee0e0c513 בנוב׳ 2026ee0e0c50fe75f4cחתומה–

שאלו כל מה שהסקופ מאפשר.

יוצרים חשבון, מוסיפים קרדיטים ושואלים את השאלה הראשונה בצ׳אט או בטרמינל.

  1. 1/3

    יצירת חשבון

    פרטי או חברה. אפשר לעבור לחשבון חברה אחר כך בלי לאבד יתרה או מפתחות.

    פרטיחברה
  2. 2/3

    הוספת קרדיטים

    בכרטיס אשראי. תשלום לפי טוקן, בלי מנוי.

    $5.00טעינה מינימלית
  3. 3/3

    שאלה ראשונה

    בצ׳אט, או להתקין את ה-CLI ולהריץ notholy login בטרמינל.

    $ notholy login