Skip to content

Commit

Permalink
Fix Improper Certificate Validation (#212)
Browse files Browse the repository at this point in the history
Disabling TLS/SSL certificate verification might lead to attack scenarios where an attacker is able to install rouge certificates on the Arduino board. The attacker would need to be within network proximity of the victim to perform the attack.
  • Loading branch information
umbynos committed Aug 21, 2023
1 parent 34be246 commit e894eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion certificates/certutils.go
Expand Up @@ -32,7 +32,7 @@ import (
// required to connect to that server from the TLS handshake response.
func ScrapeRootCertificatesFromURL(URL string) (*x509.Certificate, error) {
conn, err := tls.Dial("tcp", URL, &tls.Config{
InsecureSkipVerify: true,
InsecureSkipVerify: false,
})
if err != nil {
logrus.Error(err)
Expand Down

0 comments on commit e894eb2

Please sign in to comment.