mitsuhiko / flask-pastebin Goto Github PK
View Code? Open in Web Editor NEWExample pastebin with websockets, sqlalchemy, facebook connect and a bunch of other buzzwords
Example pastebin with websockets, sqlalchemy, facebook connect and a bunch of other buzzwords
// 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
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.