Skip to content

Building 70 Projects ranging from beginner to advanced so anyone can β€” learn from, build upon, use as a reference, or even copy directly. Owned by my cybersecurity company πŸ‘‡

feat(lisdex): N is measured now - 127 AFL crashes, 2 real bugs, and N<3 deleted one

CarterPerez-devf0f6e70679ad
diff --git a/PROJECTS/advanced/zero-day-vulnerability-scanner/crates/lisdex-core/src/report.rs b/PROJECTS/advanced/zero-day-vulnerability-scanner/crates/lisdex-core/src/report.rs
index c472ef2e..e8976489 100644
--- a/PROJECTS/advanced/zero-day-vulnerability-scanner/crates/lisdex-core/src/report.rs
+++ b/PROJECTS/advanced/zero-day-vulnerability-scanner/crates/lisdex-core/src/report.rs
@@ -34,13 +34,14 @@ const NOISE_FRAME_PREFIXES: [&str; 7] = [
"_start",
];
-const NOISE_FRAME_EXACT: [&str; 6] = [
+const NOISE_FRAME_EXACT: [&str; 7] = [
"kill",
"abort",
"raise",
"main",
"LLVMFuzzerRunDriver",
"ExecuteFilesOnyByOne",
+ "magma_log",
];
#[derive(Debug, Clone, PartialEq, Eq)]
@@ -548,7 +549,11 @@ pngrutil.c:1204:7: runtime error: left shift of negative value -1
#[test]
fn crash_site_skips_sanitizer_and_driver_frames() {
let report = SanitizerReport::parse(PNG003_CANARY).unwrap();
- assert_eq!(report.crash_site(), Some("magma_log"));
+ assert_eq!(
+ report.crash_site(),
+ Some("MAGMA_png_handle_PLTE"),
+ "magma_log is the canary runtime, not the bug; measured on a real 127-crash campaign it was the crash site for EVERY canary bug, naming the instrumentation instead of the code"
+ );
let overflow = SanitizerReport::parse(STACK_OVERFLOW).unwrap();
assert_eq!(overflow.crash_site(), Some("LLVMFuzzerTestOneInput"));
}
@@ -584,6 +589,10 @@ pngrutil.c:1204:7: runtime error: left shift of negative value -1
let significant = report.significant_frames();
assert!(!significant.contains(&"kill"));
assert!(!significant.contains(&"LLVMFuzzerRunDriver"));
+ assert!(
+ !significant.contains(&"magma_log"),
+ "the canary runtime sits between the driver and the bug on EVERY canary crash, so leaving it in spends a hash slot that discriminates nothing"
+ );
assert!(significant.contains(&"MAGMA_png_handle_PLTE"));
}