sendgrid / sendgrid-java

The Official Twilio SendGrid Led, Community Driven Java API Library
https://sendgrid.com
MIT License
483 stars 408 forks source link

Insecure Inbound Parse #730

Open OlegKunitsyn opened 2 years ago

OlegKunitsyn commented 2 years ago

Issue Summary

Inbound Parse API does not provide any security controls against a malicious sender.

Steps to Reproduce

https://github.com/sendgrid/sendgrid-java/blob/main/USAGE.md#create-a-parse-setting

Technical Details

A backward-compatibe and quick solution might be a Message Authentication Code sent via X-MAC header i.e a salted by the API key hash of the payload.

References