fossasia / open-event-server

Use of both safe and unsafe HTTP methods for a view PY-S6007
Security
Major
5 months agoa year old
Allowing both safe and unsafe methods for a view is unsecure
673    return redirect(make_frontend_url(f'orders/{order_identifier}/view'))
674
675
676@order_misc_routes.route(677    '/orders/<string:order_identifier>/paytm/initiate-transaction',
678    methods=['POST', 'GET'],
679)
Allowing both safe and unsafe methods for a view is unsecure
633        return jsonify(status=False, error='Source object status error')
634
635
636@order_misc_routes.route(637    '/orders/<string:order_identifier>/omise-checkout', methods=['POST', 'GET']
638)
639@jwt_required
Allowing both safe and unsafe methods for a view is unsecure
612        raise BadRequestError({'source': ''}, 'Source creation error')
613
614
615@alipay_blueprint.route(616    '/alipay_return_uri/<string:order_identifier>', methods=['GET', 'POST']
617)
618def alipay_return_uri(order_identifier):
Allowing both safe and unsafe methods for a view is unsecure
584    return jsonify(status=status, error=error)
585
586
587@alipay_blueprint.route(588    '/create_source/<string:order_identifier>', methods=['GET', 'POST']
589)
590@jwt_required
Allowing both safe and unsafe methods for a view is unsecure
168    return jsonify(status=False, error=response)
169
170
171@order_misc_routes.route(172    '/event-invoices/<string:invoice_identifier>/charge', methods=['POST', 'GET']
173)
174@jwt_required