GithubHelp home page GithubHelp logo

cmdwm / 0tr.me Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 3.0 9.09 MB

0tr.me is a free URL shortener & file host. Self-host it or visit us online!

Home Page: https://0tr.me

JavaScript 25.11% EJS 52.63% CSS 17.80% HTML 4.46%
custom-domain file-upload image image-host shorten-urls url url-shortener

0tr.me's Introduction

Hi there, I'm Will!

I create stuff here on GitHub. Check out my profile and explore some cool things I've made.

๐Ÿ‘ค About Me

More information @ willm.xyz
Will's GitHub stats

0tr.me's People

Contributors

cmdwm avatar tiagorangel2011 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

0tr.me's Issues

Keep URL parameters on redirect

Can the redirect leave URL parameters? E.g.:

https://0tr.me/0VX7QAS?myparam=hello&param2=blahblah ->
https://twitter.com/willmccrudden/status/1639125781380239360?myparam=hello&param2=blahblah

No backend sanitization on slug submission endpoint.

There is no sanitization on the slug submission endpoint, therefore allowing users to inject custom urls to be served by the backend. I suggest using a regex to test all URLs as they are submitted. (such as /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i)

Example:
image

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.