Skip to content

Keep parameter mining's behavioral oracle after a failed jitter probe - #6190

Merged
stamparm merged 1 commit into
sqlmapproject:masterfrom
arpitjain099:fix/paraminer-jitter-floor
Nov 23, 2026
Merged

stamparm merged 1 commit into
sqlmapproject:masterfrom
arpitjain099:fix/paraminer-jitter-floor

Conversation

@arpitjain099

Copy link
Copy Markdown
Contributor

mineParameters() measures the target's own between-request jitter with a second fetch of the baseline, and uses it as the floor the behavioral oracle compares against. _fetch() swallows any exception and returns an empty page, and _ratio() returns 0.0 whenever either side is empty, so a single dropped jitter probe sets floor = 0.0. _differs() then asks for a ratio below -0.05, which nothing satisfies, and the behavioral oracle is off for the rest of the run. Reflection still works, so the run looks normal and just finds fewer parameters.

An unanswered probe leaves the jitter unmeasured rather than measured as total, so it now assumes none, which is what a stable target would have given.

Tests:

  • New tests/test_paraminer.py: the two failing cases (dropped probe, empty probe) plus two controls, an answered probe and a target that ignores the candidate, so the result is about the probe and not the mining. All four drive the real mineParameters() with Request.getPage mocked.
  • Python 3.15 on macOS, unittest discover -s tests: 2,752 tests before, 2,756 after, OK (skipped=32) both ways.
  • With only the paraminer.py change reverted the two new cases fail again; git diff --check is clean.

Prepared with AI assistance and verified locally as described above.

mineParameters() measures the target's between-request jitter with a second baseline fetch and uses it as the floor for the behavioral oracle. _fetch() swallows exceptions and returns an empty page, and _ratio() returns 0.0 when either side is empty, so one dropped probe sets floor to 0.0 and _differs() can never fire again for the rest of the run. Treat an unanswered probe as unmeasured jitter and assume none instead.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
@stamparm
stamparm merged commit 2e629b2 into sqlmapproject:master Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants