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

Added: dynamic images (JPG/PNG) generator with SSRF token #2

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

ndelphit
Copy link
Contributor

Hey @teknogeek 👋

Motivation

While playing with your utility I noticed that when I send a request to routes:

  • GET /abc.jpg
  • GET /abc.gif

The server is returning an image with size (1x1). And I think it will cool to add as a minimum full-size image in response.

Because in some type of Content-Based SSRF (like in Screenshot / PDF generators ) it is difficult for the attacker to check whether he was able to get an image from the internal infrastructure. If the image only takes 1x1 pixel. In this case, it is easy not to notice that the vulnerability has been successfully exploited.

Changes

In this pull-request I have added:

  • Added: generator which is dynamically generated images (JPG/PNG - 1024/768 size) with SSRF token while utility startup.
  • Updated: README.md.

@teknogeek
Copy link
Owner

sorry i never approved this!

@teknogeek teknogeek merged commit 02cd31d into teknogeek:master Oct 31, 2024
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

Successfully merging this pull request may close these issues.

2 participants