twilio-labs / twilio-aspnet

Integrate Twilio Programmable Messaging and Voice with ASP.NET Respond to webhooks with TwiML in seconds
Apache License 2.0
59 stars 30 forks source link

Change default for `AllowLocal` Twilio request validation to `false`. #122

Closed Swimburger closed 1 year ago

Swimburger commented 1 year ago

When AllowLocal is not configured or set to null, the request validation filters and middleware will default the behavior to true, allowing local HTTP requests. This has been raised as a vulnerability internally at Twilio. While this feature is helpful for testing your APIs locally, it is vulnerable to Server-Side Request Forgery. While this is not an officially supported library, contributors of this library will remediate this vulnerability soon. AllowLocal will default to false in the next major release.