bl4ck5un / Town-Crier

Town Crier: an Authenticated Data Feeds for Smart Contracts
https://town-crier.netlify.app/
Other
133 stars 25 forks source link

Memory Corruption in Enclave #71

Open Tcc100 opened 2 years ago

Tcc100 commented 2 years ago

We found several security vulnerabilities in the enclave. First, the g_environment pointer can be null while being dereferenced. Since it contains nested pointers, i.e., the std::map, an attacker can gain arbitrary read/write by mapping the null page.

In addition, there are stack-based buffer overflow vulnerabilities in ecdsa_keygen_unseal, tc_provision_ecdsa_key, ecdsa_keygen_unseal, and tc_provision_hybrid_key.