Giter VIP home page Giter VIP logo

flask-pastebin's Introduction


  // Flask-Pastebin //

     This application implements an example pastebin with Flask,
     Flask-OAuth, Flask-SQLAlchemy, Flask-Script, as well as
     Juggernaut to show off some realtime things.

  What can it do?

    * Facebook Connect
    * Realtime push notifications with Juggernaut
    * Shows simple pagination

  How to use it?

    1. make a virtualenv
    2. ``pip install -r requirements.txt``
    3. ``python manage.py initdb``
    4. ``python manage.py runserver``

  Also make sure to run juggernaut.

  How to install juggernaut?

    $ npm install -g juggernaut

flask-pastebin's People

Contributors

mitsuhiko avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

flask-pastebin's Issues

(Lame) Security Issue: Open-redirect in facebook_authorized route

For more information, please see OWASP and StackOverflow

In https://github.com/mitsuhiko/flask-pastebin/blob/master/pastebin.py#L140

Vulnerability 4:
File: flask-pastebin/pastebin.py
 > User input at line 140, trigger word "get(": 
	next_url = request.args.get('next') or url_for('new_paste')
File: flask-pastebin/pastebin.py
 > reaches line 143, trigger word "redirect(": 
	¤call_2 = ret_redirect(next_url)

Vulnerability 5:
File: flask-pastebin/pastebin.py
 > User input at line 140, trigger word "get(": 
	next_url = request.args.get('next') or url_for('new_paste')
File: flask-pastebin/pastebin.py
 > reaches line 159, trigger word "redirect(": 
	¤call_10 = ret_redirect(next_url)

This issue was found with PyT

TypeError: path.existsSync is not a function

Hi, I'm trying to run this example, but when I execute in terminal:
juggernaut
it responds:
/usr/lib/node_modules/juggernaut/lib/juggernaut/server.js:12 if (path.existsSync(keysPath + "/privatekey.pem") && path.existsSync(keysPath + "/certificate.pem")) { ^ TypeError: path.existsSync is not a function at Object.<anonymous> (/usr/lib/node_modules/juggernaut/lib/juggernaut/server.js:12:10) at Module._compile (module.js:541:32) at Object.Module._extensions..js (module.js:550:10) at Module.load (module.js:458:32) at tryModuleLoad (module.js:417:12) at Function.Module._load (module.js:409:3) at Module.require (module.js:468:17) at require (internal/module.js:20:19) at Object.<anonymous> (/usr/lib/node_modules/juggernaut/lib/juggernaut/index.js:4:15) at Module._compile (module.js:541:32)

Do you know how to solve it?

Thanks a lot

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.