Session Management Response Identified

183 views
Skip to first unread message

Hector Luna

unread,
Feb 14, 2024, 10:57:04 AM2/14/24
to ZAP User Group
Hi everyone,

I am having a bit of an issue with the Session Management Response Identified rule. For some reason, it is throwing warnings for incomplete URLs for things that have already been whitelisted.

For example:
https://some.url/path/to/resource
Will not throw a warning because it is whitelisted.

This is happening while using this week's release while the issue isn't present in last week's release.

Has anything changed?
Thanks!

Simon Bennetts

unread,
Feb 15, 2024, 4:11:56 AM2/15/24
to ZAP User Group
Hiya,

Not that I'm aware of.
How are you denylisting the URLs?

Cheers,

Simon

Hector Luna

unread,
Feb 15, 2024, 5:12:01 PM2/15/24
to ZAP User Group
I use a filter in the automation script that looks similar to this:

- ruleId: 10112
ruleName: "Session Management Response Identified"
context: ""
newRisk: "False Positive"
parameter: "(?i)(?:parameterName1|parameterName2)"
parameterRegex: true
url: "https:\\/\\/some\\.url\\/(?:\
path\\/to\\/resource\\/complete\\/?param1\\=.*&param2\\=.*$|\
path\\/to\\/resource\\/some\\?list$)"
urlRegex: true
attack: ""
attackRegex: false
evidence: ""
evidenceRegex: false

That throws a warning using this week's release, but not while using last week's release.
https://some.url/path/to/resource
evidence: parameterName1

Thanks!

Simon Bennetts

unread,
Feb 20, 2024, 5:11:28 AM2/20/24
to ZAP User Group
I put your URL regex into the ZAP Regular Expression Tester and it did not match the URL.
I also tried https://regex101.com/ just to make sure and that was the same.
I did replace the "\\"s with "\".

So double check the regex, ideally with the ZAP Regex Tester.

Cheers,

Simon

Hector Luna

unread,
Feb 20, 2024, 11:01:31 AM2/20/24
to ZAP User Group
That is exactly the issue.

I do not address the incomplete URL directly. For instance, I never address https://some.url/path/to/resource directly. It is always something like https://some.url/path/to/resource/complete... 

Thanks!

Hector Luna

unread,
Feb 20, 2024, 12:05:50 PM2/20/24
to ZAP User Group
I mean, the issue is that it is throwing a warning for a URL that is not something I target.
The issue seems to have gone away as of D-2024-02-19, but it was present in D-2024-02-12.

Thanks!

Hector Luna

unread,
Feb 28, 2024, 11:20:46 AM2/28/24
to ZAP User Group
So after doing further investigation, it seems that this issue is not gone from this rule.
Not only that, but the rule seems to be reporting things wrong.

For instance, I have a request like this:
DELETE https://root.url/path/to/item/itemId/action/delete

But the rule is reporting on this:
https://root.url/path/to/item/itemId/action
Method: GET

So not only is the URL it reports on wrong, but it is also the wrong method.
The rule also seems to not care about whether or not some URL is excluded in the execution plan either, while other rules have no issues excluding the very same URL.

I will to use a version of ZAP where this was not an issue. I believe this was not a thing at the beginning of February and report on my findings.

Simon Bennetts

unread,
Feb 29, 2024, 4:26:19 AM2/29/24
to ZAP User Group
This problem will not be fixed ... unless you give us enough diagnostics for us to diagnose and fix it.
Your choice...

Hector Luna

unread,
Mar 4, 2024, 10:44:38 AM3/4/24
to ZAP User Group
Absolutely. I am working on other things at the moment, but will look into getting something more concrete and useful to get to the bottom of this issue as soon as possible.
Reply all
Reply to author
Forward
0 new messages