Merge pull request #11206 from righettod/thruk_upd

Refactor the "Thruk" template.
patch-14
Dhiyaneshwaran 2024-11-18 08:45:02 +05:30 committed by GitHub
commit 2830146425
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 51 additions and 43 deletions

View File

@ -1,42 +0,0 @@
id: thruk-login
info:
name: Thruk Monitoring Panel - Detect
author: ffffffff0x
severity: info
description: Thruk Monitoring panel was detected.
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
cwe-id: CWE-200
cpe: cpe:2.3:a:thruk:thruk:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: thruk
product: thruk
fofa-query:
- title=="Thruk Monitoring Webinterface"
- title=="thruk monitoring webinterface"
- body="thruk"
shodan-query: http.html:"thruk"
tags: thruk,panel
http:
- method: GET
path:
- "{{BaseURL}}/thruk/cgi-bin/login.cgi?thruk/"
host-redirects: true
max-redirects: 2
matchers-condition: and
matchers:
- type: word
part: body
words:
- '<title>Thruk Monitoring Webinterface</title>'
- type: word
part: header
words:
- "thruk_test="
# digest: 4b0a00483046022100c164ecaab7ebe50c3a134d59987805dcfc86d3eb0db900c958d6720b9d814840022100c1db6b41eed13fb1978257d1c7d9450fdbcc3dc8612004940ed658021b353c0d:922c64590222798bb761d5b6d8e72950

View File

@ -0,0 +1,50 @@
id: thruk-panel
info:
name: Thruk Login Panel - Detect
author: ffffffff0x,righettod
severity: info
description: Thruk Monitoring panel was detected.
reference:
- https://thruk.org/
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
cwe-id: CWE-200
cpe: cpe:2.3:a:thruk:thruk:*:*:*:*:*:*:*:*
metadata:
max-request: 6
vendor: thruk
product: thruk
fofa-query:
- title=="Thruk Monitoring Webinterface"
- title=="thruk monitoring webinterface"
- body="thruk"
shodan-query: http.html:"thruk" || http.title:"thruk monitoring webinterface"
tags: thruk,panel,login
http:
- method: GET
path:
- "{{BaseURL}}"
redirects: true
max-redirects: 6
matchers-condition: and
matchers:
- type: dsl
dsl:
- 'contains_any(to_lower(body), "<title>thruk monitoring webinterface", "<title>thruk - monitoring webinterface", "thruk_static_export")'
- 'contains_any(to_lower(header), "x-thruk-auth-key", "thruk_test=")'
condition: or
- type: dsl
dsl:
- 'status_code == 200 || status_code == 401'
extractors:
- type: regex
part: body
group: 1
regex:
- '(?i)version_info\s*=\s*.?([a-z0-9./\s.-]+).?'

View File

@ -5,6 +5,6 @@ info:
author: daffainfo
description: A simple workflow that runs all Thruk related nuclei templates on a given target.
workflows:
- template: http/exposed-panels/thruk-login.yaml
- template: http/exposed-panels/thruk-panel.yaml
subtemplates:
- tags: thruk