Comments (3)
@ppshobi Although I don't see this as being a huge concern that the IDs will be the same across different sites (because this package shouldn't be used for generating secure URLs), I do agree with you!
I think this could be a feature included in a future release :)
from short-url.
well, this could definitely land in a future release, I would like to point out one more issue with specifying the salt as a constant. Even though this library should not be used as a way to generate secure URLs, once a URL is available, I could easily fingerprint the total number of URLs you have and go to other peoples URLs even without any prior information. This potentially could open up a whole new level of options to fingerprint all the information on the shortinks
table and poses a security threat as well.
And once people start using it, changing the salt can be potentially risky
from short-url.
@ppshobi As mentioned before, I do agree with you about not having the salt as a constant.
Like you say, you could work your way backwards after getting one URL and could try and look at the previously created short URLs as well. However, I wouldn't say that this is a security issue as such. This package is aimed at things like adding short URLs for digital marketing purposes rather than anything that is sensitive or private.
I've created a new branch on this repo for v2.1.0 if you'd like to make a pull request with the new feature? :)
from short-url.
Related Issues (20)
- Is there possibility to add user_id to the short_urls table and populate that if user is authorized?
- How to disable link? HOT 1
- Short URL redirect not working HOT 3
- Link Clicked Events not being "caught" by Listener HOT 4
- A short URL with this key already exists. HOT 1
- Manually rerun migrations HOT 4
- Issue with config('short-url.default_url') HOT 6
- Using a Custom Route not working HOT 2
- [FR] make it possible to overwrite the models
- Whitelisting IPs HOT 1
- Gives 404 if prefix is null HOT 8
- Click even t(ShortURLVisited) only registering once on live HOT 3
- Duplicate entry for key HOT 14
- Editing existing links don´t work HOT 5
- How to Disable Validation? HOT 1
- Unable to Update or Create a Short URL When Key Already Exists HOT 2
- Open Graph meta tag HOT 2
- url returning with double slashes. HOT 2
- Customize table structure HOT 1
- Collision and performance issue HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from short-url.