Skip to content

Commit

Permalink
Merge pull request #7697 from professorabhay/main
Browse files Browse the repository at this point in the history
Solve Issue - #6811
  • Loading branch information
DhiyaneshGeek committed Jul 21, 2023
2 parents f581e3a + 5c46edd commit 9cd6ac5
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions http/default-logins/geoserver/geoserver-default-login.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
id: geoserver-default-login

info:
name: Geoserver Default Admin Login
author: For3stCo1d
name: Geoserver Admin - Default Login
author: For3stCo1d,professorabhay,ritikchaddha
severity: high
description: Geoserver default admin credentials were discovered.
reference:
Expand All @@ -13,6 +13,7 @@ info:
cwe-id: CWE-522
metadata:
max-request: 1
verified: true
fofa-query: app="GeoServer"
tags: geoserver,default-login

Expand All @@ -25,21 +26,24 @@ http:
username={{user}}&password={{pass}}
- |
GET /geoserver/web/ HTTP/1.1
Host: {{Hostname}}
attack: pitchfork
payloads:
user:
- admin
pass:
- geoserver

matchers-condition: and
host-redirects: true
max-redirects: 2
cookie-reuse: true
matchers:
- type: dsl
dsl:
- "contains(tolower(location), '/geoserver/web')"
- "!contains(tolower(location), 'error=true')"
- "contains(tolower(location_1), '/geoserver/web') && contains(body_2, '<span>admin</span>')"
- "!contains(tolower(location_1), 'error=true')"
- 'status_code_1 == 302'
condition: and

- type: status
status:
- 302

0 comments on commit 9cd6ac5

Please sign in to comment.