{"id":7407,"date":"2018-07-31T10:34:14","date_gmt":"2018-07-31T10:34:14","guid":{"rendered":"https:\/\/developers.messagemedia.com\/?p=801"},"modified":"2018-07-31T10:34:14","modified_gmt":"2018-07-31T10:34:14","slug":"why-you-need-secure-webhooks","status":"publish","type":"blog","link":"https:\/\/messagemedia.com\/au\/blog\/why-you-need-secure-webhooks\/","title":{"rendered":"Secure Webhooks &gt; Webhooks"},"content":{"rendered":"<h3>What are Webhooks and why they\u2019re not secure<\/h3>\n<p>The growth of Webhooks has been substantial over the last couple of years and more and more services are offering the ability to configure them. In a nutshell, a Webhook\u2019s purpose is to notify you when some sort of event occurs. If you want to use a Webhook, you need to provide a callback URL, and the service offering the Webhook will make a HTTP request to that URL whenever the specified event occurs. All you need is the ability to listen for HTTP requests to the callback URL. The sad part is that standard HTTP messages are insecure and can be easily spoofed, and this could potentially open up a security hole when using Webhooks.<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-903\" src=\"https:\/\/messagemedia.com\/wp-content\/uploads\/2020\/08\/secure_webhooks_1.1-1.png\" alt=\"\" width=\"697\" height=\"363\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>What are Secure Webhooks?<\/h3>\n<p>Once your server is configured to receive requests, it&#8217;ll listen for any requests sent to the endpoint you configured. For security purposes, you would want to limit requests to those coming from a trusted source. This can be accomplished by implementing an authentication mechanism for all Webhooks sent via the source.\u00a0However, there is a trade-off between convenience and complexity. The down-side of this approach is that it introduces more complexity for the recipient of the Webhook \u2013 they need to be able to calculate what the hash value should be. But hey better safe than sorry, right?<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-898\" src=\"https:\/\/messagemedia.com\/wp-content\/uploads\/2020\/08\/secure_webhooks2_final.png\" alt=\"\" width=\"610\" height=\"94\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Why you need Secure Webhooks<\/h3>\n<p>For instance, let\u2019s say you\u2019re an online vendor who uses Stripe as the payment provider. Stripe offers multiple Webhooks, but let\u2019s talk about the one that informs you when someone has made a purchase. This information can be used to dispatch the product to the buyer. This example highlights the importance of a security mechanism for Webhooks. Imagine what the implications would be if a fake Webhook was received by the system. You don\u2019t want anyone to be able to call your Webhook and get free items shipped to them \u2013 we need to be able to verify who the Webhook is from.<\/p>\n<h3><\/h3>\n<h3>Next Steps<\/h3>\n<p>Security is a key element that should be considered in every component of a web application. By default, a Webhook URL is publicly accessible and can receive a payload from anybody who knows the URL. Secure Webhooks are best-suited for organisations that exchange sensitive data in real-time via Webhooks and thus, require an additional level of security. It ensures information is coming in from verified sources and therefore, protects unwanted data from entering the system. To find out more on the different ways of implementing secure Webhooks, read the third part over <a href=\"https:\/\/developers.messagemedia.com\/introducing-messagemedia-enterprise-webhooks\/\">here<\/a>.<\/p>\n","protected":false},"author":0,"featured_media":8953,"menu_order":226,"template":"page-blog-v2.php","meta":{"_acf_changed":false,"popular":false,"coming_soon":false,"link":"","footnotes":""},"blog_category":[37],"class_list":["post-7407","blog","type-blog","status-publish","has-post-thumbnail","hentry","blog_category-developers"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Secure Webhooks &gt; Webhooks - Sinch MessageMedia Australia<\/title>\n<meta name=\"description\" content=\"The growth of Webhooks has been substantial over the last couple of years and more and more services are offering the ability to configure them. Australia\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/messagemedia.com\/au\/blog\/why-you-need-secure-webhooks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Secure Webhooks &gt; Webhooks - Sinch MessageMedia\" \/>\n<meta property=\"og:description\" content=\"The growth of Webhooks has been substantial over the last couple of years and more and more services are offering the ability to configure them.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/messagemedia.com\/au\/blog\/why-you-need-secure-webhooks\/\" \/>\n<meta property=\"og:site_name\" content=\"Sinch MessageMedia\" \/>\n<meta property=\"og:image\" content=\"https:\/\/messagemedia.com\/wp-content\/uploads\/2018\/07\/camera-equipment-pavement-430208-scaled-e1591850492421.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"325\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/blog\\\/why-you-need-secure-webhooks\\\/\",\"url\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/blog\\\/why-you-need-secure-webhooks\\\/\",\"name\":\"Secure Webhooks &gt; Webhooks - Sinch MessageMedia\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/blog\\\/why-you-need-secure-webhooks\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/blog\\\/why-you-need-secure-webhooks\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/messagemedia.com\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/camera-equipment-pavement-430208-scaled-e1591850492421.jpg\",\"datePublished\":\"2018-07-31T10:34:14+00:00\",\"description\":\"The growth of Webhooks has been substantial over the last couple of years and more and more services are offering the ability to configure them.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/blog\\\/why-you-need-secure-webhooks\\\/#breadcrumb\"},\"inLanguage\":\"en-AU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/messagemedia.com\\\/au\\\/blog\\\/why-you-need-secure-webhooks\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-AU\",\"@id\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/blog\\\/why-you-need-secure-webhooks\\\/#primaryimage\",\"url\":\"https:\\\/\\\/messagemedia.com\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/camera-equipment-pavement-430208-scaled-e1591850492421.jpg\",\"contentUrl\":\"https:\\\/\\\/messagemedia.com\\\/wp-content\\\/uploads\\\/2018\\\/07\\\/camera-equipment-pavement-430208-scaled-e1591850492421.jpg\",\"width\":1024,\"height\":325,\"caption\":\"camera equipment pavement 430208 scaled e1591850492421\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/blog\\\/why-you-need-secure-webhooks\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/messagemedia.com\\\/us\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Secure Webhooks &gt; Webhooks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/#website\",\"url\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/\",\"name\":\"Sinch MessageMedia\",\"description\":\"Business SMS &amp; Messaging Platform\",\"publisher\":{\"@id\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-AU\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/#organization\",\"name\":\"Sinch MessageMedia\",\"url\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-AU\",\"@id\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/messagemedia.com\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/logo-mm-sinch.svg\",\"contentUrl\":\"https:\\\/\\\/messagemedia.com\\\/wp-content\\\/uploads\\\/2024\\\/03\\\/logo-mm-sinch.svg\",\"width\":1,\"height\":1,\"caption\":\"Sinch MessageMedia\"},\"image\":{\"@id\":\"https:\\\/\\\/messagemedia.com\\\/au\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Secure Webhooks &gt; Webhooks - Sinch MessageMedia Australia","description":"The growth of Webhooks has been substantial over the last couple of years and more and more services are offering the ability to configure them. Australia","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/messagemedia.com\/au\/blog\/why-you-need-secure-webhooks\/","og_locale":"en_US","og_type":"article","og_title":"Secure Webhooks &gt; Webhooks - Sinch MessageMedia","og_description":"The growth of Webhooks has been substantial over the last couple of years and more and more services are offering the ability to configure them.","og_url":"https:\/\/messagemedia.com\/au\/blog\/why-you-need-secure-webhooks\/","og_site_name":"Sinch MessageMedia","og_image":[{"width":1024,"height":325,"url":"https:\/\/messagemedia.com\/wp-content\/uploads\/2018\/07\/camera-equipment-pavement-430208-scaled-e1591850492421.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/messagemedia.com\/au\/blog\/why-you-need-secure-webhooks\/","url":"https:\/\/messagemedia.com\/au\/blog\/why-you-need-secure-webhooks\/","name":"Secure Webhooks &gt; Webhooks - Sinch MessageMedia","isPartOf":{"@id":"https:\/\/messagemedia.com\/au\/#website"},"primaryImageOfPage":{"@id":"https:\/\/messagemedia.com\/au\/blog\/why-you-need-secure-webhooks\/#primaryimage"},"image":{"@id":"https:\/\/messagemedia.com\/au\/blog\/why-you-need-secure-webhooks\/#primaryimage"},"thumbnailUrl":"https:\/\/messagemedia.com\/wp-content\/uploads\/2018\/07\/camera-equipment-pavement-430208-scaled-e1591850492421.jpg","datePublished":"2018-07-31T10:34:14+00:00","description":"The growth of Webhooks has been substantial over the last couple of years and more and more services are offering the ability to configure them.","breadcrumb":{"@id":"https:\/\/messagemedia.com\/au\/blog\/why-you-need-secure-webhooks\/#breadcrumb"},"inLanguage":"en-AU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/messagemedia.com\/au\/blog\/why-you-need-secure-webhooks\/"]}]},{"@type":"ImageObject","inLanguage":"en-AU","@id":"https:\/\/messagemedia.com\/au\/blog\/why-you-need-secure-webhooks\/#primaryimage","url":"https:\/\/messagemedia.com\/wp-content\/uploads\/2018\/07\/camera-equipment-pavement-430208-scaled-e1591850492421.jpg","contentUrl":"https:\/\/messagemedia.com\/wp-content\/uploads\/2018\/07\/camera-equipment-pavement-430208-scaled-e1591850492421.jpg","width":1024,"height":325,"caption":"camera equipment pavement 430208 scaled e1591850492421"},{"@type":"BreadcrumbList","@id":"https:\/\/messagemedia.com\/au\/blog\/why-you-need-secure-webhooks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/messagemedia.com\/au\/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https:\/\/messagemedia.com\/us\/blog\/"},{"@type":"ListItem","position":3,"name":"Secure Webhooks &gt; Webhooks"}]},{"@type":"WebSite","@id":"https:\/\/messagemedia.com\/au\/#website","url":"https:\/\/messagemedia.com\/au\/","name":"Sinch MessageMedia","description":"Business SMS &amp; Messaging Platform","publisher":{"@id":"https:\/\/messagemedia.com\/au\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/messagemedia.com\/au\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-AU"},{"@type":"Organization","@id":"https:\/\/messagemedia.com\/au\/#organization","name":"Sinch MessageMedia","url":"https:\/\/messagemedia.com\/au\/","logo":{"@type":"ImageObject","inLanguage":"en-AU","@id":"https:\/\/messagemedia.com\/au\/#\/schema\/logo\/image\/","url":"https:\/\/messagemedia.com\/wp-content\/uploads\/2024\/03\/logo-mm-sinch.svg","contentUrl":"https:\/\/messagemedia.com\/wp-content\/uploads\/2024\/03\/logo-mm-sinch.svg","width":1,"height":1,"caption":"Sinch MessageMedia"},"image":{"@id":"https:\/\/messagemedia.com\/au\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/messagemedia.com\/au\/wp-json\/wp\/v2\/blog\/7407","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/messagemedia.com\/au\/wp-json\/wp\/v2\/blog"}],"about":[{"href":"https:\/\/messagemedia.com\/au\/wp-json\/wp\/v2\/types\/blog"}],"version-history":[{"count":0,"href":"https:\/\/messagemedia.com\/au\/wp-json\/wp\/v2\/blog\/7407\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/messagemedia.com\/au\/wp-json\/wp\/v2\/media\/8953"}],"wp:attachment":[{"href":"https:\/\/messagemedia.com\/au\/wp-json\/wp\/v2\/media?parent=7407"}],"wp:term":[{"taxonomy":"blog_category","embeddable":true,"href":"https:\/\/messagemedia.com\/au\/wp-json\/wp\/v2\/blog_category?post=7407"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}