Making boolean inference some more robust against jitter
Some checks are pending
/ build (macos-latest, 3.8) (push) Waiting to run
/ build (ubuntu-latest, pypy-2.7) (push) Waiting to run
/ build (windows-latest, 3.14) (push) Waiting to run

This commit is contained in:
Miroslav Štampar 2026-07-29 02:13:39 +02:00
parent 306738539e
commit 39d22d26c3
5 changed files with 94 additions and 5 deletions

View file

@ -818,6 +818,12 @@ def checkSqlInjection(place, parameter, value):
injection.data[stype].trueCode = trueCode
injection.data[stype].falseCode = falseCode
# reference bodies for inference.py's "resembles neither TRUE nor FALSE model"
# anomaly guard (runtime-only; lets a transient same-HTTP-code junk response
# trigger a validateChar re-check during boolean extraction)
if method == PAYLOAD.METHOD.COMPARISON:
kb.trueTemplate, kb.falseTemplate = truePage, falsePage
injection.conf.textOnly = conf.textOnly
injection.conf.titles = conf.titles
injection.conf.code = conf.code