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

[Security Bug] Path Traversal Vulnerability in the API. #681

Open
0xs1ash opened this issue Jan 29, 2025 · 0 comments
Open

[Security Bug] Path Traversal Vulnerability in the API. #681

0xs1ash opened this issue Jan 29, 2025 · 0 comments

Comments

@0xs1ash
Copy link

0xs1ash commented Jan 29, 2025

Describe the bug


When performing static code analysis, if a parameter received in the API is forwarded directly to the user without validation, a critical vulnerability arises.In the Devika.py file, the /api/get-browser-snapshot endpoint takes the query from the request and sends the specified file to the user. Since there is no filtering or additional validation, any file can be sent to the user.

PoC


The vulnerability arises as you can see from below.

  • Vulnerable Endpoint: localhost:1337/api/get-browser-snapshot?snapshot_path=
  • Payload: ../../../../../../etc/passwd

Url:
Image

File Content:
Image

Vulnerable Code Snippet:
Image

Mitigation


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