Fix lightfuzz envelope cross-contamination between submodules#2910
Merged
Fix lightfuzz envelope cross-contamination between submodules#2910
Conversation
Contributor
📊 Performance Benchmark Report
📈 Detailed Results (All Benchmarks)
🎯 Performance Summary✅ No significant performance changes detected (all changes <10%) 🐍 Python Version 3.11.14 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #2910 +/- ##
=====================================
+ Coverage 92% 92% +1%
=====================================
Files 416 416
Lines 34399 34467 +68
=====================================
+ Hits 31357 31420 +63
- Misses 3042 3047 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
TheTechromancer
approved these changes
Feb 19, 2026
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.
Lightfuzz Envelope Contamination Bug: Root Cause and Fix
Lightfuzz submodules (SQLi, CMDi, XSS, crypto, etc.) execute sequentially against the same event. When a parameter value is wrapped in an encoding layer (hex, Base64, etc.), the envelope system transparently encodes and decodes probe values so fuzzing occurs inside the encoding.
Problem
outgoing_probe_value()encoded probes using:This process mutated the envelope’s internal state.
Failure sequence
' OR 1=1--through the envelope.Root Cause
Envelope packing was stateful. Encoding a probe altered the stored parameter value, causing cross-module contamination.
Fix
A new method was added:
Behavior
outgoing_probe_value()now usespack_value()instead of the mutatingset_subparam() + pack()pattern.Result
Test Coverage Improvements
New tests enable all submodules simultaneously to verify envelope isolation.
Previously, tests only exercised a single submodule at a time, allowing this issue to go undetected.