bl4ck5un / mbedtls-SGX

mbedtls-SGX: a SGX-friendly TLS stack (ported from mbedtls)
Apache License 2.0
91 stars 32 forks source link

FIX #16: Security patch for information leak. #17

Closed mustakimur closed 5 years ago

mustakimur commented 5 years ago

16 Fix

The return of OCALL requires to check as it is untrusted data. A ret > ssl->out_left could cause an integer overflow and lead to targeting arbitrary memory, later dump outside. The fix has been adopted from main branch of mbedtls project.