FR: implement URL tampering encoding (v3/Thumbor)
See original GitHub issueIn 3.x, I generated safe URLs by setting a SECURITY_KEY
env var, which is used by Thumbor to create the encoded url: https://github.com/thumbor/thumbor/wiki/security
I could then use this same SECURITY_KEY
to generate a valid url with another backend-system (eg PHP.
How can I do something similar with 4.x/Sharp?
Related: https://github.com/awslabs/serverless-image-handler/issues/106
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:9 (2 by maintainers)
Top Results From Across the Web
FR: implement URL tampering encoding (v3/Thumbor) #111
In 3.x, I generated safe URLs by setting a SECURITY_KEY env var, which is used by Thumbor to create the encoded url: ...
Read more >Web Parameter Tampering - OWASP Foundation
The Web Parameter Tampering attack is based on the manipulation of parameters exchanged between client and server in order to modify application data,...
Read more >Tamper-proof URL parameters with JWTs
Tamper -proof URL parameters with JWTs. URL parameters are straightforward to send information along in a request.
Read more >Preventing URL Tampering - Oracle Help Center
You can configure security attributes in two ways: Use a wizard and select a value for specific attribute categories. Those selections are then...
Read more >URL Encoded Attacks - CGISecurity
Using a mix of escaped-encoding and Unicode character representation, it is often possible for an attacker to craft requests that may be interpreted...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@timkelty Thanks for adding this request, I’m copying it into our feature backlog to be looked into and addressed in a future release. Your feedback has been super helpful in the improvement of this solution!
Due to the fact that AWS have updated the lambda execution environment, which caused our old thumbor implementation to break, we had to implement this ourselves. If anyone is interested, this is the code we have so far (this is not tested in production yet, so no guarantees…but maybe helpful to someone)
securityHashPathIndex (for us at least) is 1. We get security_key from the environment variables (ie. process.env.SECURITY_KEY) and set that in the AWS lambda environment vars.
Here are a couple of unit tests we wrote for it, with the keys and paths removed: