Module ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias alias alias Assign NameStore Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assert NameLoad Return SubscriptLoad Call AttributeLoad NameLoad attr Index Num decorator_list ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index Str Str Assign NameStore Call NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad FunctionDef arguments args defaults body Assign NameStore Call NameLoad If Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr orelse Assign NameStore Str Return Call NameLoad Str keyword NameLoad keyword NameLoad decorator_list AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str FunctionDef arguments args defaults body Expr Call AttributeLoad NameLoad attr Return Str decorator_list AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Assign NameStore Call NameLoad Str NameLoad FunctionDef arguments args defaults body Return Str decorator_list Call AttributeLoad NameLoad attr Str keyword ListLoad Str Str Expr Call AttributeLoad NameLoad attr NameLoad keyword Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Assert CompareEq AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str Str Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str NameLoad Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str NameLoad Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str keyword Dict Str NameLoad keyword Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str keyword Dict Str NameLoad keyword Dict Str Str keyword Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str keyword Dict Str NameLoad keyword Dict Str Str keyword Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str keyword Dict Str NameLoad keyword Dict Str Str keyword Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str keyword Dict Str NameLoad keyword Dict Str Str keyword Str Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str NameLoad Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Assert CompareEq AttributeLoad NameLoad attr Num FunctionDef arguments args NameParam defaults body Return NameLoad decorator_list AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Assert CompareEq AttributeLoad NameLoad attr Num Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str Call NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str keyword Dict Str NameLoad keyword Dict Str Str keyword Str Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad AttributeLoad NameLoad attr attr Index Str ListLoad Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str keyword Dict Str NameLoad keyword Dict Str Str keyword Str Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str keyword Dict Str Str Str NameLoad Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr body Assert UnaryOpNot Call NameLoad Str Assign NameStore Call NameLoad Assert Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad keyword NameLoad Assert Call NameLoad NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Return Call NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq AttributeLoad NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareEq AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args defaults body Return Call NameLoad Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assert CompareIn Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword Str Assert CompareNotEq NameLoad NameLoad Assert Call NameLoad NameLoad keyword Str decorator_list FunctionDef arguments args NameParam defaults body With Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad Assign NameStore Call NameLoad keyword NameLoad Assert CompareNotEq NameLoad NameLoad Assert CompareNotIn Str NameLoad Assert Call AttributeLoad NameLoad attr Str NameLoad Assert Call NameLoad NameLoad keyword NameLoad decorator_list decorator_list
N/A __future__ with_statement N/A re flask Blueprint flask render_template flask_wtf.csrf CsrfProtect flask_wtf.csrf validate_csrf generate_csrf base TestCase MyForm to_unicode N/A csrf_token_input N/A N/A re compile name="csrf_token" type="hidden" value="([0-9a-z#A-Z-\.]*)" get_csrf_token N/A N/A data N/A N/A N/A match N/A N/A csrf_token_input search N/A to_unicode data N/A match N/A N/A N/A N/A match groups N/A 0 N/A TestCSRF N/A TestCase N/A setUp N/A N/A self N/A N/A N/A app N/A N/A self create_app N/A N/A N/A app config N/A WTF_CSRF_SECRET_KEY a poorly kept secret. N/A csrf N/A CsrfProtect app N/A N/A self csrf csrf csrf_exempt N/A N/A N/A N/A N/A form N/A MyForm N/A N/A N/A form validate_on_submit N/A N/A name N/A N/A N/A N/A form name data upper N/A N/A name N/A N/A render_template index.html form form name name N/A N/A csrf exempt N/A N/A app route /csrf-exempt methods N/A GET POST csrf_protect_method N/A N/A N/A N/A N/A N/A N/A csrf protect N/A protected N/A N/A csrf exempt N/A N/A app route /csrf-protect-method methods N/A GET POST N/A bp N/A Blueprint csrf __name__ foo N/A N/A N/A N/A N/A foo N/A N/A N/A bp route /foo methods N/A GET POST N/A N/A N/A app register_blueprint bp url_prefix /bar N/A N/A self bp bp N/A N/A self app app N/A N/A self client N/A N/A N/A self app test_client N/A test_invalid_csrf N/A N/A self N/A N/A N/A response N/A N/A N/A self client post / data N/A name danny N/A N/A N/A response status_code 400 invalid N/A N/A reason N/A N/A N/A reason N/A N/A N/A self csrf error_handler N/A response N/A N/A N/A self client post / data N/A name danny N/A N/A N/A response status_code 200 N/A N/A token missing N/A response data N/A test_invalid_csrf2 N/A N/A self N/A N/A N/A response N/A N/A N/A self client post / data N/A name csrf_token danny 9999999999999##test N/A N/A N/A response status_code 400 N/A test_invalid_secure_csrf3 N/A N/A self N/A N/A N/A response N/A N/A N/A self client post / data N/A name csrf_token danny 1378915137.722##foo##bar##and N/A N/A N/A response status_code 400 N/A test_valid_csrf N/A N/A self N/A N/A N/A response N/A N/A N/A self client get / N/A csrf_token N/A get_csrf_token N/A response data N/A response N/A N/A N/A self client post / data N/A name csrf_token danny csrf_token N/A N/A DANNY N/A response data N/A test_prefixed_csrf N/A N/A self N/A N/A N/A response N/A N/A N/A self client get / N/A csrf_token N/A get_csrf_token N/A response data N/A response N/A N/A N/A self client post / data N/A prefix-name prefix-csrf_token David csrf_token N/A N/A N/A response status_code 200 N/A test_invalid_secure_csrf N/A N/A self N/A N/A N/A response N/A N/A N/A self client get / base_url https://localhost/ N/A csrf_token N/A get_csrf_token N/A response data N/A response N/A N/A N/A self client post / data N/A name danny headers N/A X-CSRFToken csrf_token base_url https://localhost/ N/A N/A N/A response status_code 400 N/A N/A failed N/A response data N/A response N/A N/A N/A self client post / data N/A name danny headers N/A X-CSRFToken csrf_token environ_base N/A HTTP_REFERER https://example.com/ base_url https://localhost/ N/A N/A N/A response status_code 400 N/A N/A not match N/A response data N/A response N/A N/A N/A self client post / data N/A name danny headers N/A X-CSRFToken csrf_token environ_base N/A HTTP_REFERER http://localhost/ base_url https://localhost/ N/A N/A N/A response status_code 400 N/A N/A not match N/A response data N/A response N/A N/A N/A self client post / data N/A name danny headers N/A X-CSRFToken csrf_token environ_base N/A HTTP_REFERER https://localhost:3000/ base_url https://localhost/ N/A N/A N/A response status_code 400 N/A N/A not match N/A response data N/A test_valid_secure_csrf N/A N/A self N/A N/A N/A response N/A N/A N/A self client get / base_url https://localhost/ N/A csrf_token N/A get_csrf_token N/A response data N/A response N/A N/A N/A self client post / data N/A name danny headers N/A X-CSRFToken csrf_token environ_base N/A HTTP_REFERER https://localhost/ base_url https://localhost/ N/A N/A N/A response status_code 200 N/A test_valid_csrf_method N/A N/A self N/A N/A N/A response N/A N/A N/A self client get / N/A csrf_token N/A get_csrf_token N/A response data N/A response N/A N/A N/A self client post /csrf-protect-method data N/A csrf_token csrf_token N/A N/A N/A response status_code 200 N/A test_invalid_csrf_method N/A N/A self N/A N/A N/A response N/A N/A N/A self client post /csrf-protect-method data N/A name danny N/A N/A N/A response status_code 400 invalid N/A N/A reason N/A N/A N/A reason N/A N/A N/A self csrf error_handler N/A response N/A N/A N/A self client post / data N/A name danny N/A N/A N/A response status_code 200 N/A N/A token missing N/A response data N/A test_empty_csrf_headers N/A N/A self N/A N/A N/A response N/A N/A N/A self client get / base_url https://localhost/ N/A csrf_token N/A get_csrf_token N/A response data N/A N/A N/A N/A self app config N/A WTF_CSRF_HEADERS N/A list N/A response N/A N/A N/A self client post / data N/A name danny headers N/A X-CSRFToken csrf_token environ_base N/A HTTP_REFERER https://localhost/ base_url https://localhost/ N/A N/A N/A response status_code 400 N/A test_custom_csrf_headers N/A N/A self N/A N/A N/A response N/A N/A N/A self client get / base_url https://localhost/ N/A csrf_token N/A get_csrf_token N/A response data N/A N/A N/A N/A self app config N/A WTF_CSRF_HEADERS N/A X-XSRF-TOKEN N/A response N/A N/A N/A self client post / data N/A name danny headers N/A X-XSRF-TOKEN csrf_token environ_base N/A HTTP_REFERER https://localhost/ base_url https://localhost/ N/A N/A N/A response status_code 200 N/A test_not_endpoint N/A N/A self N/A N/A N/A response N/A N/A N/A self client post /not-endpoint N/A N/A N/A response status_code 404 N/A test_testing N/A N/A self N/A N/A N/A N/A N/A self app testing True N/A N/A N/A N/A self client post / data N/A name danny N/A test_csrf_exempt N/A N/A self N/A N/A N/A response N/A N/A N/A self client get /csrf-exempt N/A csrf_token N/A get_csrf_token N/A response data N/A response N/A N/A N/A self client post /csrf-exempt data N/A name csrf_token danny csrf_token N/A N/A DANNY N/A response data N/A test_validate_csrf N/A N/A self N/A N/A N/A N/A N/A N/A self app test_request_context N/A N/A N/A N/A validate_csrf ff##dd N/A csrf_token N/A generate_csrf N/A N/A validate_csrf csrf_token N/A test_validate_not_expiring_csrf N/A N/A self N/A N/A N/A N/A N/A N/A self app test_request_context N/A N/A csrf_token N/A generate_csrf time_limit False N/A N/A validate_csrf csrf_token time_limit False N/A test_csrf_token_helper N/A N/A self N/A N/A withtoken N/A N/A N/A N/A N/A N/A render_template csrf.html N/A N/A N/A N/A self app route /token N/A response N/A N/A N/A self client get /token N/A N/A # N/A response data N/A test_csrf_blueprint N/A N/A self N/A N/A N/A response N/A N/A N/A self client post /bar/foo N/A N/A N/A response status_code 400 N/A N/A N/A N/A self csrf exempt N/A self bp N/A response N/A N/A N/A self client post /bar/foo N/A N/A N/A response status_code 200 N/A test_csrf_token_macro N/A N/A self N/A N/A withtoken N/A N/A N/A N/A N/A N/A render_template import_csrf.html N/A N/A N/A N/A self app route /token N/A response N/A N/A N/A self client get /token N/A N/A # N/A response data N/A test_csrf_custom_token_key N/A N/A self N/A N/A N/A N/A N/A N/A self app test_request_context N/A N/A default_csrf_token N/A generate_csrf N/A custom_csrf_token N/A generate_csrf token_key oauth_state N/A N/A default_csrf_token custom_csrf_token N/A N/A validate_csrf custom_csrf_token token_key oauth_state N/A test_csrf_url_safe N/A N/A self N/A N/A N/A N/A N/A N/A self app test_request_context N/A N/A default_csrf_token N/A generate_csrf N/A url_safe_csrf_token N/A generate_csrf url_safe True N/A N/A default_csrf_token url_safe_csrf_token N/A N/A # url_safe_csrf_token N/A N/A N/A re match ^[a-f0-9]+--[a-f0-9]+$ url_safe_csrf_token N/A N/A validate_csrf url_safe_csrf_token url_safe True N/A N/A