feat(fuzz): add fuzz harnesses for jwt, secrets and yaml parsing#340
Open
TBX3D wants to merge 2 commits into
Open
feat(fuzz): add fuzz harnesses for jwt, secrets and yaml parsing#340TBX3D wants to merge 2 commits into
TBX3D wants to merge 2 commits into
Conversation
split the byte-parsing and validation core out of the file-reading wrapper so module definitions can be parsed from memory. behavior is unchanged: ParseYAMLModule reads the file then delegates.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #340 +/- ##
=======================================
Coverage ? 54.97%
=======================================
Files ? 81
Lines ? 6876
Branches ? 0
=======================================
Hits ? 3780
Misses ? 2833
Partials ? 263 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
pr summary7 files changed (+215 -0)
|
cover the untrusted-input parsers that had no fuzz coverage: jwt analysis and segment decode, js secret scanning, yaml module parsing, openapi spec parsing, html title extraction and js endpoint extraction. the secrets, openapi and endpoint harnesses assert invariants (match is a substring of input, ok implies non-nil spec, results non-empty and sorted); the rest are crash-only.
TBX3D
force-pushed
the
feat/fuzz-harnesses
branch
from
July 9, 2026 21:52
d789537 to
f16f6aa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
adds 7 fuzz targets across the parsers and extractors that read untrusted
<title> extraction from an HTTP body. all corpora are clean after a local run (no crashers); each target asserts its own invariant beyond "must not panic" where one exists (a reported secret match must be a verbatim substring of the input, extracted endpoints must be sorted and deduped).input directly: YAML module definitions, JWT analysis and segment
decoding, endpoint/secret extraction from JS, OpenAPI spec parsing, and
the YAML fuzz target needed parseYAMLModuleBytes pulled out of
ParseYAMLModule so module bytes can be fuzzed without a temp file; the
path-based function now just wraps it, no behavior change.