2021-08-19 11:02:09 +00:00
|
|
|
id: dbeaver-credentials
|
|
|
|
|
|
|
|
info:
|
2022-07-26 13:45:11 +00:00
|
|
|
name: DBeaver - Credentials Discovery
|
2023-07-31 22:37:06 +00:00
|
|
|
author: geeknik,j4vaovo
|
2022-07-26 13:45:11 +00:00
|
|
|
severity: medium
|
|
|
|
description: DBeaver credentials were discovered.
|
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N
|
|
|
|
cvss-score: 5.8
|
|
|
|
cwe-id: CWE-522
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
2023-07-31 22:37:06 +00:00
|
|
|
max-request: 2
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: exposure,dbeaver
|
2023-07-31 22:37:06 +00:00
|
|
|
variables:
|
|
|
|
str: "{{rand_base(6)}}"
|
2021-08-19 11:04:32 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2023-07-31 22:37:06 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET /{{str}}.json HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
- |
|
|
|
|
GET /.dbeaver/credentials-config.json HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
2021-08-19 11:02:09 +00:00
|
|
|
|
2021-08-23 09:39:33 +00:00
|
|
|
# To decode the credentials file, use following command:
|
|
|
|
# openssl aes-128-cbc -d -K "babb4a9f774ab853c96c2d653dfe544a" -iv 00000000000000000000000000000000 -in credentials-config.json | dd bs=1 skip=16 2>/dev/null
|
2021-08-19 11:02:09 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
2022-03-11 12:18:28 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
2023-07-31 22:37:06 +00:00
|
|
|
- "status_code_2 == 200"
|
|
|
|
- "len(body_2) > 2"
|
|
|
|
- "contains(header_2, 'application/octet-stream')"
|
|
|
|
- "len(body_1) != len(body_2)"
|
|
|
|
- "!contains(tolower(body_2), '<html')"
|
|
|
|
- "!contains(tolower(body_2), '<body')"
|
|
|
|
- "!contains(tolower(body_2), '<iframe')"
|
2023-07-14 02:01:16 +00:00
|
|
|
condition: and
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 4a0a0047304502206c5ee9e24a774d874f5aa05ccc1e48824854b51174dfd509ac7f3ad9565c8452022100d020ec3c02113227377293f12f2e3205231c7166452cdaca3ae0e594b6a90856:922c64590222798bb761d5b6d8e72950
|