Closed tintinweb closed 4 years ago
(review commit: a0a4526c8347b12a672d3b1d333505f4572119c0)
InvalidKeystore
exception instead of assertion or segfaultvendor/NimYAML/test/yaml-test-suite/Q5MG/in.json
: {}
Please enter the password for decrypting 'vendor/NimYAML/test/yaml-test-suite/Q5MG/in.json' or press ENTER to skip importing this keystore
Password:
I've re-addressed this in the fix-1687 branch
Description
nbc crashes when importing invalid keystore json files.
1)
vendor/NimYAML/test/yaml-test-suite/Q5MG/in.json
contents:
crash on import:
2)
./.vscode/tasks.json
contents:
crash on import:
Exploit Scenario
This sink should only be reachable by trusted entities, however, someone might provide a victim with a modified keystore file which they will end up crashing with. Severity depends on whether the segfault can be exploited in some way (so far it looks like an invalid memory read which suggests it is not an exploitable crash)
Mitigation Recommendation