Weaknesses of type CWE-617
460 resultsAsserção Acessível
É quando uma asserção (verificação de condição de debug) fica acessível em código de produção e pode ser acionada por entrada malformada ou não esperada. Se a asserção falha, o programa termina abruptamente, causando negação de serviço. O risco está em expor lógica de depuração que não deveria ser pública.
Example
Um servidor web com assert(tamanho_arquivo < 1GB) no meio do processamento de upload. Um atacante envia arquivo gigante, a asserção é acionada e o serviço cai. Usuários legítimos perdem acesso.
How to mitigate
Use exceções tratadas e validações explícitas em vez de asserções para entradas de usuários. Remova ou desative asserções em builds de produção; use flags de compilação (-DNDEBUG em C/C++, ou não incluir asserções no jar final em Java).
CVE-2022-35968MEDIUM`CHECK` fail in `AvgPoolGrad` in TensorFlowEPSS 0.5%CVE-2022-35992MEDIUM`CHECK` fail in `TensorListFromTensor` in TensorFlowEPSS 0.5%CVE-2022-35984MEDIUM`CHECK` fail in `ParameterizedTruncatedNormal` in TensorFlowEPSS 0.5%CVE-2022-36002MEDIUM`CHECK` fail in `Unbatch` in TensorFlowEPSS 0.5%CVE-2022-36005MEDIUM`CHECK` fail in `FakeQuantWithMinMaxVarsGradient` in TensorFlowEPSS 0.5%CVE-2022-35993MEDIUM`CHECK` fail in `SetSize` in TensorFlowEPSS 0.5%CVE-2022-36003MEDIUM`CHECK` fail in `RandomPoissonV2` in TensorFlowEPSS 0.5%CVE-2022-35989MEDIUM`CHECK` fail in `MaxPool` in TensorFlowEPSS 0.5%CVE-2022-35995MEDIUM`CHECK` fail in `AudioSummaryV2` in TensorFlowEPSS 0.5%CVE-2022-36026MEDIUM`CHECK` fail in `QuantizeAndDequantizeV3` in TensorFlowEPSS 0.5%CVE-2022-35985MEDIUM`CHECK` fail in `LRNGrad` in TensorFlowEPSS 0.5%CVE-2022-35994MEDIUM`CHECK` fail in `CollectiveGather` in TensorFlowEPSS 0.5%CVE-2022-35983MEDIUM`CHECK` fail in `Save` and `SaveSlices` in TensorFlowEPSS 0.5%CVE-2022-36019MEDIUM`CHECK` fail in `FakeQuantWithMinMaxVarsPerChannel` in TensorFlowEPSS 0.5%CVE-2022-35987MEDIUM`CHECK` fail in `DenseBincount` in TensorFlowEPSS 0.5%CVE-2022-35963MEDIUM`CHECK` failures in `FractionalAvgPoolGrad` in TensorFlowEPSS 0.5%CVE-2022-35981MEDIUM`CHECK` fail in `FractionalMaxPoolGrad` in TensorFlowEPSS 0.5%CVE-2022-23565MEDIUM`CHECK`-failures in TensorflowEPSS 0.5%CVE-2022-41893MEDIUM`CHECK_EQ` fail in `tf.raw_ops.TensorListResize` in TensorflowEPSS 0.5%CVE-2022-23571MEDIUMReachable Assertion in TensorflowEPSS 0.5%