8000 fix: proxy giphy and tenor searches to avoid api key leakage by jon4hz · Pull Request #1 · pix/giphytenormatrixproxy · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: proxy giphy and tenor searches to avoid api key leakage #1

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jon4hz
Copy link
@jon4hz jon4hz commented Jun 4, 2025

Hi, I noticed that you are templating the api keys for giphy and tenor in the index.html. That leaks the api key to everyone who has access to your proxy.

This PR adds new http endpoints, so the backend does the actual api calls to giphy/tenor. This way the api key will never be publicly visible.

BTW the randomly generated bearer token that protects the /api/local endpoint gets leaked, too. That makes the auth basically useless, if you're lucky it will prevent some automated scanners from accessing this endpoint, but that's about it.

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.

1 participant
0