Falhas do tipo CWE-120

3.164 resultados

Estouro de buffer clássico

A aplicação copia dados em um buffer sem validar o tamanho, permitindo que um atacante sobrescreva memória adjacente. Isso pode corromper variáveis, desviar o fluxo de execução ou injetar código malicioso que será executado com os mesmos privilégios da aplicação.

Exemplo

Um formulário web aceita um nome de usuário e o copia direto em um array de 32 bytes sem checar comprimento. Um atacante envia 200 bytes; o excesso sobrescreve o endereço de retorno da função, desviando a execução para código dele. Comum em CGI antigos, serviços network e binários C/C++ mal escritos.

Como mitigar

Use funções seguras (strncpy, strlcpy em vez de strcpy; snprintf em vez de sprintf) que respeitam limites. Sempre valide e sanitize entrada externa antes de copiar. Em C moderno, considere AddressSanitizer ou ferramentas estáticas para detectar cópias inseguras em tempo de compilação.

CVE-2024-7185HIGHTOTOLINK A3600R cstecgi.cgi setWebWlanIdx buffer overflowEPSS 1.1%CVE-2024-7176HIGHTOTOLINK A3600R cstecgi.cgi setIpQosRules buffer overflowEPSS 1.1%CVE-2025-43433HIGHThe issue was addressed with improved memory handling. This issue is fixed in Safari 26.1, iOS 18.7.2 and iPadOS 18.7.2, iOS 26.1 and iPadOSEPSS 1.1%CVE-2024-7180HIGHTOTOLINK A3600R cstecgi.cgi setPortForwardRules buffer overflowEPSS 1.1%CVE-2025-4147HIGHNetgear EX6200 sub_47F7C buffer overflowEPSS 1.1%CVE-2024-7182HIGHTOTOLINK A3600R cstecgi.cgi setUpgradeFW buffer overflowEPSS 1.1%CVE-2024-7173HIGHTOTOLINK A3600R cstecgi.cgi loginauth buffer overflowEPSS 1.1%CVE-2025-4141HIGHNetgear EX6200 sub_3C03C buffer overflowEPSS 1.1%CVE-2024-7179HIGHTOTOLINK A3600R cstecgi.cgi setParentalRules buffer overflowEPSS 1.1%CVE-2024-8577HIGHTOTOLINK AC1200 T8/AC1200 T10 cstecgi.cgi setStaticDhcpRules buffer overflowEPSS 1.1%CVE-2024-8575HIGHTOTOLINK AC1200 T8 cstecgi.cgi setWiFiScheduleCfg buffer overflowEPSS 1.1%CVE-2024-7184HIGHTOTOLINK A3600R cstecgi.cgi setUrlFilterRules buffer overflowEPSS 1.1%CVE-2024-7183HIGHTOTOLINK A3600R cstecgi.cgi setUploadSetting buffer overflowEPSS 1.1%CVE-2024-7178HIGHTOTOLINK A3600R cstecgi.cgi setMacQos buffer overflowEPSS 1.1%CVE-2024-8576HIGHTOTOLINK AC1200 T8/AC1200 T10 cstecgi.cgi setIpPortFilterRules buffer overflowEPSS 1.1%CVE-2024-7186HIGHTOTOLINK A3600R cstecgi.cgi setWiFiAclAddConfig buffer overflowEPSS 1.1%CVE-2024-8578HIGHTOTOLINK AC1200 T8 cstecgi.cgi setWiFiMeshName buffer overflowEPSS 1.1%CVE-2024-7213HIGHTOTOLINK A7000R cstecgi.cgi setWizardCfg buffer overflowEPSS 1.1%CVE-2025-4298HIGHTenda AC1206 setcfm formSetCfm buffer overflowEPSS 1.1%CVE-2025-11295HIGHBelkin F9K1015 formPPPoESetup buffer overflowEPSS 1.1%