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

Static forged session cookies in http/cves/2023/CVE-2023-27524.yaml #9418

Open
Klendath opened this issue Mar 25, 2024 · 2 comments
Open

Static forged session cookies in http/cves/2023/CVE-2023-27524.yaml #9418

Klendath opened this issue Mar 25, 2024 · 2 comments
Assignees
Labels
false-negative Nuclei template missing valid results

Comments

@Klendath
Copy link

Klendath commented Mar 25, 2024

Static session cookies will result in false negative results.

Nuclei Version: 3.2.2

Template file: http/cves/2023/CVE-2023-27524.yaml

Command to reproduce:

docker run projectdiscovery/nuclei:v3.2.2 -u http://x.x.x.x:8088 -t http/cves/2023/CVE-2023-27524.yaml

target used:
docker run -d --name superset -e SUP_SECRET_KEY=CHANGE_ME_TO_A_COMPLEX_SECRET -p 8088:8088 tylerfowler/superset

Issues:

  1. Time based signatures are used for the session cookies. Statically forged ones are invalidated almost immediately. This template requires a method for implementing the Flask-Unsign python module or something similar.
  2. Database payloads for the cluster bomb are excessive. If the forged session token is valid and used for a nonexistent database the response is a 404 versus a 401 if the session token is invalid.
@Klendath Klendath added the false-negative Nuclei template missing valid results label Mar 25, 2024
@Klendath
Copy link
Author

I was able to develop a working solution that verifies the signature on the initial cookie and correctly signs the forged cookie. I am working through my employer's open source contribution process to get approval to submit it.

@GeorginaReeder
Copy link

Awesome that you were able to develop a solution @Klendath , thanks for the update. Looking forward to your submission!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
false-negative Nuclei template missing valid results
Projects
None yet
Development

No branches or pull requests

3 participants