Added ServiceNow Helpdesk Credential Exposure (#3371)

* Added ServiceNow Helpdesk Credential Exposure

Co-Authored-By: JP <19959240+jordanpotti@users.noreply.github.com>

* matcher update

Co-authored-by: JP <19959240+jordanpotti@users.noreply.github.com>
patch-1
Sandeep Singh 2021-12-19 23:42:01 +05:30 committed by GitHub
parent c7f8a6a313
commit 7a5cdc2bc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
id: servicenow-helpdesk-credential
info:
name: ServiceNow Helpdesk Credential Exposure
author: ok_bye_now
severity: high
description: Detection of exposed credentials in help the help desk JS file.
reference: https://jordanpotti.com/2021/02/21/ServiceNow-HelpTheHelpDeskAndTheHackers/
tags: servicenow,exposure
requests:
- method: GET
path:
- "{{RootURL}}/HelpTheHelpDesk.jsdbx"
redirects: true
max-redirects: 2
matchers-condition: and
matchers:
- type: word
words:
- 'var httpPassword = "encrypt:'
- type: status
status:
- 200
extractors:
- type: regex
group: 1
regex:
- 'var server = "([a-z:/0-9.-]+)"'