Infinite loop with special conditions
-
Hi there,
I found a specific problem with the security tool (ZAP). With a specific search query and some conditions (I haven’t checked this point deeply), the query request never stops due to an infinite loop inside one function.
The search query:
?s=test"+%2F+sleep(15)+%2F+"
This query goes to the function
relevanssi_extract_locations
where the variable$words=["/ sleep(15) /", "sleep(15)", "test", "/", ""]
. Then the loopwhile ( false !== $loc ) {
never ends/breaks because the functionrelevanssi_stripos
always return false (when the$word
is empty).I can temporarily solve this issue by enabling
relevanssi_optimize_excerpts
but please take a closer look at this issue.Thanks in advance!
Artem
- The topic ‘Infinite loop with special conditions’ is closed to new replies.