Exploit databaseDownload repository ZIP
GH-f7058a3a4d8f9e0ceef2ba1ac1c12f6f
chybeta/cve-2017-11427-demo
Sources for CVE-2017-11427
3 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files35
chybeta/cve-2017-11427-demoRevision 8a420b9ea68c
- ↑..Parent directory
- static/
- templates/
- test_apps/
- __init__.py
- __init__.pyc
- appctx.py
- appctx.pyc
- basic.py
- basic.pyc
- blueprints.py
- blueprints.pyc
- config.py
- config.pyc
- deprecations.py
- deprecations.pyc
- examples.py
- examples.pyc
- ext.py
- ext.pyc
- helpers.py
- helpers.pyc
- regression.py
- regression.pyc
- reqctx.py
- reqctx.pyc
- signals.py
- signals.pyc
- subclassing.py
- subclassing.pyc
- templating.py
- templating.pyc
- testing.py
- testing.pyc
- views.py
- views.pyc
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
venv/lib/python2.7/site-packages/flask/testsuite/subclassing.py
Python · 1,214 bytes# -*- coding: utf-8 -*-
"""
flask.testsuite.subclassing
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Test that certain behavior of flask can be customized by
subclasses.
:copyright: (c) 2011 by Armin Ronacher.
:license: BSD, see LICENSE for more details.
"""
import flask
import unittest
from logging import StreamHandler
from flask.testsuite import FlaskTestCase
from flask._compat import StringIO
class FlaskSubclassingTestCase(FlaskTestCase):
def test_suppressed_exception_logging(self):
class SuppressedFlask(flask.Flask):
def log_exception(self, exc_info):
pass
out = StringIO()
app = SuppressedFlask(__name__)
app.logger_name = 'flask_tests/test_suppressed_exception_logging'
app.logger.addHandler(StreamHandler(out))
@app.route('/')
def index():
1 // 0
rv = app.test_client().get('/')
self.assert_equal(rv.status_code, 500)
self.assert_in(b'Internal Server Error', rv.data)
err = out.getvalue()
self.assert_equal(err, '')
def suite():
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(FlaskSubclassingTestCase))
return suite