codenotary / immudb

immudb - immutable database based on zero trust, SQL/Key-Value/Document model, tamperproof, data change history
https://immudb.io
Other
8.54k stars 341 forks source link

Off by one error can cause DOS #253

Closed Gjergj closed 4 years ago

Gjergj commented 4 years ago

Steps to reproduce:

start immudb ./immudb

strart immugw ./immugw

issue curl --request POST \ --url 'http://localhost:3323/v1/immurestproxy/batch/set?=' \ --header 'content-type: application/json' \ --data '{ "items":[ { "gjergji" : "ggggfdgdfg"}, {"gjergji": "ggggfdgdfg"} ] } '

Result immudb crash

Expect No crash

Gjergj commented 4 years ago

Closing as a fix is merged.