PT-2017-10704 · Ruby · Private Address Check
Edoverflow
·
Publicado
2017-11-13
·
Atualizado
2019-10-09
·
CVE-2017-0904
CVSS v3.1
8.1
Alta
| Vetor | AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
private address check ruby gem versions prior to 0.4.0
Description
The issue arises from the use of Ruby's
Resolv.getaddresses method, which is OS-dependent and should not be relied upon for security measures. This method is used to blacklist private network addresses to prevent server-side request forgery, but its OS-dependent nature makes it unsuitable for such security purposes.Recommendations
For private address check ruby gem versions prior to 0.4.0, update to version 0.4.0 or later to resolve the issue. As a temporary workaround, consider disabling the use of the
Resolv.getaddresses method until a patch is available. Restrict access to private network addresses to minimize the risk of server-side request forgery.Correção
Improper Handling of Exceptional Conditions
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾
Identificadores relacionados
Produtos afetados
Private Address Check