Merge pull request #10155 from projectdiscovery/caprover-default-login

Create caprover-default-login.yaml
patch-4
Dhiyaneshwaran 2024-06-28 17:58:35 +05:30 committed by GitHub
commit 680352214b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,34 @@
id: caprover-default-login
info:
name: Caprover - Default Login
author: ritikchaddha
severity: high
description: |
Caprover defaultl login has been detected.
metadata:
verified: true
max-request: 1
shodan-query: http.favicon.hash:988422585
tags: caprover,default-login,misconfig
variables:
password: captain42
http:
- raw:
- |
POST /api/v2/login HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
x-namespace: captain
{"password":"{{password}}"}
matchers:
- type: dsl
dsl:
- 'contains_all(body, "status\":100", "Login succeeded", "token\":")'
- 'contains(header, "application/json")'
- 'status_code == 200'
condition: and