Skip to content

Commit 11906eb

Browse files
committed
Fix issue rapid7#7645 where dolibarr_login module crashed
Add "res" (http response) when trying to retrieve the cookie
1 parent 9325ef8 commit 11906eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/http/dolibarr_login.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def get_sid_token
4646
return [nil, nil] if res.nil? || res.get_cookies.empty?
4747

4848
# Get the session ID from the cookie
49-
m = get_cookies.match(/(DOLSESSID_.+);/)
49+
m = res.get_cookies.match(/(DOLSESSID_.+);/)
5050
id = (m.nil?) ? nil : m[1]
5151

5252
# Get the token from the decompressed HTTP body response

0 commit comments

Comments
 (0)