False positiv SQL injection alerts with changing Header (request-id, timestamp)?

100 views
Skip to first unread message

Nicolò Mendola

unread,
Apr 1, 2025, 8:14:14 AMApr 1
to ZAP User Group
Hello everyone,

We have a problem where our zaproxy run has identified various SQL injections. Our application responds to the attack attempt with a Bad Request (HTTP 400). For every request to our application, a request-id is generated, which can be seen in the X-Request-Id header and changes with each request. We are using the following Docker image: zaproxy/zap-bare:latest.

An example URL looks like this:

https://example.domain.net/endpoint/pageFavoriteAddInternal/page/-U9DEcUIQzm4v6Zph6Annw?versionState=published&editmode=false AND 1=1 --&_csrf=dPveI88G-O3HVaN48fcAlEwOzKdWVlfX9VIRgJhXCMj9S2flhDog

Can you tell us what we can do in our case? We believe these are false positives.

Nicolò Mendola

unread,
Apr 1, 2025, 8:39:45 AMApr 1
to ZAP User Group
Screenhot from the Report:
Bildschirmfoto vom 2025-04-01 14-29-50.png

Simon Bennetts

unread,
Apr 2, 2025, 9:03:44 AMApr 2
to ZAP User Group
Hiya,

Yes, they could well be false positives, but we cant know for sure as we dont have access to your app.
FYI we do know that the SQL Injection rule is prone to False Positives - we are working opn improving that as we speak :)

Cheers,

Simon

Nicolò Mendola

unread,
Apr 7, 2025, 4:53:09 AMApr 7
to zaprox...@googlegroups.com
Hey Simon, 

thank you very much for your reply. I think we will temporarily deactivate the SQL Injection Test until the improvements are complete. 

How we know, when the improvements are done and published? 

Best Regards

--
ZAP by Checkmarx: https://www.zaproxy.org/
---
You received this message because you are subscribed to a topic in the Google Groups "ZAP User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/zaproxy-users/rNlb20JrOlA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to zaproxy-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/zaproxy-users/d303b0ff-6506-4f82-9d12-9b17a9bab413n%40googlegroups.com.

Olindo Pindaro

unread,
Apr 8, 2025, 6:01:13 AMApr 8
to ZAP User Group
I implemented in java a filter at instance level exclude  form report false positive, but I produce a report by myself. 

Simon Bennetts

unread,
Apr 8, 2025, 6:53:00 AMApr 8
to ZAP User Group
We will post to this group when the new SQL Injection scan rule improvements are available.

Cheers,

Simon

James L

unread,
May 2, 2025, 12:19:35 PMMay 2
to ZAP User Group
Hi Simon and all,

Might be slightly OT... Ive been having these rules and a few others trigger on block pages. I think it is flagging because the block page has a reference number that changes with each block. Is there a way to alert filter globally so that if the block page shows up in evidence it gets marked as FP? 

I think I can do this with alert filters but  I would have to put an alert filter on every rule that triggers the block page. is it possible to apply to all alerts? Is there a better way to do this?

Simon Bennetts

unread,
May 5, 2025, 5:45:51 AMMay 5
to ZAP User Group
Hi James,

What do you mean by a "block page"? Is that like a custom 403?
Let us knopw how you get on :)

Cheers,

Simon

Nicolò Mendola

unread,
5:32 AM (6 hours ago) 5:32 AM
to zaprox...@googlegroups.com
Hey Simon, 

any News about the updated SQL Injection Tests? 

PS: Happy Holidays :) 

Best Regards 

--
ZAP by Checkmarx: https://www.zaproxy.org/
---
You received this message because you are subscribed to a topic in the Google Groups "ZAP User Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/zaproxy-users/rNlb20JrOlA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to zaproxy-user...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages