GithubHelp home page GithubHelp logo

Comments (3)

ash-jc-allen avatar ash-jc-allen commented on July 17, 2024

@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.

ppshobi avatar ppshobi commented on July 17, 2024

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.

ash-jc-allen avatar ash-jc-allen commented on July 17, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.