mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Flask update (#2700)
* Flask security update The Pallets Project Flask before 1.0 is affected by: unexpected memory usage. The impact is: denial of service. The attack vector is: crafted encoded JSON data. The fixed version is: 1. NOTE: this may overlap CVE-2018-1000656. Signed-off-by: David Dashyan <mail@davie.li> * Make send_naughty_tx error regex more robust Signed-off-by: David Dashyan <mail@davie.li>
This commit is contained in:
parent
4a008e51e3
commit
d9dfa98819
@ -68,8 +68,9 @@ def send_naughty_tx(asset, metadata):
|
||||
error = sent_transaction.error
|
||||
regex = (
|
||||
r'\{\s*\n*'
|
||||
r'\s*"message": "Invalid transaction \(ValidationError\): Invalid key name.*The key name cannot contain characters.*\n*' # noqa
|
||||
r'\s*"status": 400\n*'
|
||||
r'\s*"message":\s*"Invalid transaction \(ValidationError\):\s*'
|
||||
r'Invalid key name.*The key name cannot contain characters.*\n*'
|
||||
r'\s*"status":\s*400\n*'
|
||||
r'\s*\}\n*')
|
||||
assert status_code == 400
|
||||
assert re.fullmatch(regex, error), sent_transaction
|
||||
|
Loading…
x
Reference in New Issue
Block a user