Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Security Vulnerability - Action Required: BufferOverflow vulnerability may in your project #469

Open
Crispy-fried-chicken opened this issue Sep 3, 2024 · 0 comments

Comments

@Crispy-fried-chicken
Copy link

Hi,
we have detected that your project may be vulnerable to bufferoverflow in the function of int send_chunk (CONCRETE_IO_HANDLE tls_io,const void* buffer,size_t size,ON_SEND_COMPLETE on_send_complete,void* callback_context) in the file of samples/local_server_tls_sample/tls_server_io_schannel.c . It shares similarities to a recent CVE disclosure CVE-2024-29195 in the azure-c-shared-utility.

The source vulnerability information is as follows:

Vulnerability Detail:
CVE Identifier: CVE-2024-29195
Description: The azure-c-shared-utility is a C library for AMQP/MQTT communication to Azure Cloud Services. This library may be used by the Azure IoT C SDK for communication between IoT Hub and IoT Hub devices. An attacker can cause an integer wraparound or under-allocation or heap buffer overflow due to vulnerabilities in parameter checking mechanism, by exploiting the buffer length parameter in Azure C SDK, which may lead to remote code execution. Requirements for RCE are 1. Compromised Azure account allowing malformed payloads to be sent to the device via IoT Hub service, 2. By passing IoT hub service max message payload limit of 128KB, and 3. Ability to overwrite code space with remote code. Fixed in commit Azure/azure-c-shared-utility@1129147.
Reference: https://nvd.nist.gov/vuln/detail/CVE-2024-29195
Patch: Azure/azure-c-shared-utility@1129147

Would you help to check if this bug is true? If it's true, I'd like to open a PR for that if necessary. Thank you for your effort and patience!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant