Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create filegator-default-login.yaml #10807

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions http/default-logins/filegator-default-login.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
id: filegator-default-login

info:
name: Filegator - Default-Login
author: ritikchaddha
severity: high
reference:
- https://serverpilot.io/docs/how-to-install-a-file-manager-on-your-server/#:~:text=You%20should%20see%20the%20FileGator,Password%3A%20admin123
metadata:
verified: true
max-request: 2
shodan-query: title:"FileGator"
tags: filegator,default-login,misconfig

variables:
username: "admin"
password: "admin123"

http:
- raw:
- |
GET /#/ HTTP/1.1
Host: {{Hostname}}

- |
POST /?r=/login HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
X-Csrf-Token: {{csrf_token}}

{"username":"{{username}}","password":"{{password}}"}

host-redirects: true
max-redirects: 2
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'role":"admin'
- 'permissions":['
condition: and

- type: word
part: header
words:
- application/json

- type: status
part: header_2
status:
- 200

extractors:
- type: kval
name: csrf_token
kval:
- 'x_csrf_token'
internal: true
Loading