Sensitive data sent through an unsecure HTTP communication detected.

Description

Sensitive data should only be sent through HTTPS. This rule checks that any transmissions over HTTP that contain sensitive data do so over HTTPS.

Remediations

❌ Avoid sending sensitive data though unsecured HTTP communication:

HTTParty.post(
'http://unsecure-api.com/user',
body: {
name: user.name,
email: user.email,
purchase: File.open('/#{user.id}/purchase.xls')
}
)

✅ Ensure to always connect though HTTPS when sending sensitive data:

HTTParty.post(
'https://secure-api.com/user',
body: {
name: user.name,
email: user.email,
purchase: File.open('/#{user.id}/purchase.xls')
}
)

Resources

Associated CWE

OWASP Top 10