{"id":1482,"date":"2025-01-23T03:05:16","date_gmt":"2025-01-23T03:05:16","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/01\/23\/mastercard-dns-error-went-unnoticed-for-years\/"},"modified":"2025-01-23T03:05:16","modified_gmt":"2025-01-23T03:05:16","slug":"mastercard-dns-error-went-unnoticed-for-years","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/01\/23\/mastercard-dns-error-went-unnoticed-for-years\/","title":{"rendered":"MasterCard DNS Error Went Unnoticed for Years"},"content":{"rendered":"<p>    MasterCard DNS Error Went Unnoticed for Years<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>The payment card giant <strong>MasterCard<\/strong> just fixed a glaring error in its domain name server settings that could have allowed anyone to intercept or divert Internet traffic for the company by registering an unused domain name. The misconfiguration persisted for nearly five years until a security researcher spent $300 to register the domain and prevent it from being grabbed by cybercriminals.<\/p>\n<div id=\"attachment_70128\" style=\"width: 677px\" class=\"wp-caption aligncenter\">\n<img data-recalc-dims=\"1\" loading=\"lazy\" aria-describedby=\"caption-attachment-70128\" decoding=\"async\" class=\"size-full wp-image-70128\" src=\"https:\/\/i0.wp.com\/krebsonsecurity.com\/wp-content\/uploads\/2025\/01\/akamne.png?resize=667%2C478&#038;ssl=1\" alt=\"\" width=\"667\" height=\"478\"><\/p>\n<p id=\"caption-attachment-70128\" class=\"wp-caption-text\">A DNS lookup on the domain az.mastercard.com on Jan. 14, 2025 shows the mistyped domain name a22-65.akam.ne.<\/p>\n<\/div>\n<p>From June 30, 2020 until January 14, 2025, one of the core Internet servers that MasterCard uses to direct traffic for portions of the mastercard.com network was misnamed. MasterCard.com relies on five shared Domain Name System (DNS) servers at the Internet infrastructure provider <strong>Akamai <\/strong>[DNS acts as a kind of Internet phone book, by translating website names to numeric Internet addresses that are easier for computers to manage].<\/p>\n<p>All of the Akamai DNS server names that MasterCard uses are supposed to end in \u201cakam.net\u201d but one of them was misconfigured to rely on the domain \u201c<strong>akam.ne<\/strong>.\u201d<\/p>\n<p>This tiny but potentially critical typo was discovered recently by <strong>Philippe Caturegli<\/strong>,\u00a0founder of the security consultancy <a href=\"https:\/\/www.seralys.com\/\" target=\"_blank\" rel=\"noopener\">Seralys<\/a>. Caturegli said he guessed that nobody had yet registered the domain akam.ne, which is under the purview of the top-level domain authority for the West Africa nation of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Niger\" target=\"_blank\" rel=\"noopener\">Niger<\/a>.<\/p>\n<p>Caturegli said it took $300 and nearly three months of waiting to secure the domain with the registry in Niger. After enabling a DNS server on akam.ne, he noticed hundreds of thousands of DNS requests hitting his server each day from locations around the globe. Apparently, MasterCard wasn\u2019t the only organization that had fat-fingered a DNS entry to include \u201cakam.ne,\u201d but they were by far the largest.<\/p>\n<p>Had he enabled an email server on his new domain akam.ne, Caturegli likely would have received wayward emails directed toward mastercard.com or other affected domains. If he\u2019d abused his access, he probably could have <a href=\"https:\/\/krebsonsecurity.com\/2024\/08\/local-networks-go-global-when-domain-names-collide\/\" target=\"_blank\" rel=\"noopener\">obtained website encryption certificates (SSL\/TLS certs)<\/a> that were authorized to accept and relay web traffic for affected websites. He may even have been able to <a href=\"https:\/\/krebsonsecurity.com\/2020\/02\/dangerous-domain-corp-com-goes-up-for-sale\/\" target=\"_blank\" rel=\"noopener\">passively receive Microsoft Windows authentication credentials<\/a> from employee computers at affected companies.<\/p>\n<p>But the researcher said he didn\u2019t attempt to do any of that. Instead, he alerted MasterCard that the domain was theirs if they wanted it, copying this author on his notifications. A few hours later, MasterCard acknowledged the mistake, but said there was never any real threat to the security of its operations.<\/p>\n<p>\u201cWe have looked into the matter and there was not a risk to our systems,\u201d a MasterCard spokesperson wrote. \u201cThis typo has now been corrected.\u201d<\/p>\n<p>Meanwhile, Caturegli received a request submitted through <strong>Bugcrowd<\/strong>, a program that offers financial rewards and recognition to security researchers who find flaws and work privately with the affected vendor to fix them. The message suggested his public disclosure of the MasterCard DNS error via <a href=\"https:\/\/www.linkedin.com\/feed\/update\/urn:li:activity:7285038365236682753\/\" target=\"_blank\" rel=\"noopener\">a post on LinkedIn<\/a> (after he\u2019d secured the akam.ne domain) was not aligned with ethical security practices, and passed on a request from MasterCard to have the post removed.<\/p>\n<div id=\"attachment_70126\" style=\"width: 718px\" class=\"wp-caption aligncenter\">\n<img data-recalc-dims=\"1\" aria-describedby=\"caption-attachment-70126\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-70126\" src=\"https:\/\/i0.wp.com\/krebsonsecurity.com\/wp-content\/uploads\/2025\/01\/mastercard-response.png?resize=708%2C855&#038;ssl=1\" alt=\"\" width=\"708\" height=\"855\"><\/p>\n<p id=\"caption-attachment-70126\" class=\"wp-caption-text\">MasterCard\u2019s request to Caturegli, a.k.a. \u201cTiton\u201d on infosec.exchange.<\/p>\n<\/div>\n<p>Caturegli said while he does have an account on Bugcrowd, he has never submitted anything through the Bugcrowd program, and that he reported this issue directly to MasterCard.<\/p>\n<p>\u201cI did not disclose this issue through Bugcrowd,\u201d Caturegli wrote in reply. \u201cBefore making any public disclosure, I ensured that the affected domain was registered to prevent exploitation, mitigating any risk to MasterCard or its customers. This action, which we took at our own expense, demonstrates our commitment to ethical security practices and responsible disclosure.\u201d <span id=\"more-70117\"><\/span><\/p>\n<p>Most organizations have at least two authoritative domain name servers, but some handle so many DNS requests that they need to spread the load over additional DNS server domains. In MasterCard\u2019s case, that number is five, so it stands to reason that if an attacker managed to seize control over just one of those domains they would only be able to see about one-fifth of the overall DNS requests coming in.<\/p>\n<p>But Caturegli said the reality is that many Internet users are relying at least to some degree on public traffic forwarders or DNS resolvers like <strong>Cloudflare<\/strong> and <strong>Google<\/strong>.<\/p>\n<p>\u201cSo all we need is for one of these resolvers to query our name server and cache the result,\u201d Caturegli said. By setting their DNS server records with a long TTL or \u201cTime To Live\u201d \u2014 a setting that can adjust the lifespan of data packets on a network \u2014 an attacker\u2019s poisoned instructions for the target domain can be propagated by large cloud providers.<\/p>\n<p>\u201cWith a long TTL, we may reroute a LOT more than just 1\/5 of the traffic,\u201d he said.<\/p>\n<p>The researcher said he\u2019d hoped that the credit card giant might thank him, or at least offer to cover the cost of buying the domain.<\/p>\n<p>\u201cWe obviously disagree with this assessment,\u201d Caturegli wrote in <a href=\"https:\/\/www.linkedin.com\/feed\/update\/urn:li:activity:7285038365236682753?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7285038365236682753%2C7285289297706909697%29&amp;dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287285289297706909697%2Curn%3Ali%3Aactivity%3A7285038365236682753%29\" target=\"_blank\" rel=\"noopener\">a follow-up post<\/a> on LinkedIn regarding MasterCard\u2019s public statement. \u201cBut we\u2019ll let you judge\u2014 here are some of the DNS lookups we recorded before reporting the issue.\u201d<\/p>\n<div id=\"attachment_70125\" style=\"width: 800px\" class=\"wp-caption aligncenter\">\n<img data-recalc-dims=\"1\" aria-describedby=\"caption-attachment-70125\" decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-70125\" src=\"https:\/\/i0.wp.com\/krebsonsecurity.com\/wp-content\/uploads\/2025\/01\/mastercard-domains.png?resize=790%2C561&#038;ssl=1\" alt=\"\" width=\"790\" height=\"561\" srcset=\"https:\/\/krebsonsecurity.com\/wp-content\/uploads\/2025\/01\/mastercard-domains.png 790w, https:\/\/krebsonsecurity.com\/wp-content\/uploads\/2025\/01\/mastercard-domains-768x545.png 768w, https:\/\/krebsonsecurity.com\/wp-content\/uploads\/2025\/01\/mastercard-domains-782x555.png 782w, https:\/\/krebsonsecurity.com\/wp-content\/uploads\/2025\/01\/mastercard-domains-100x70.png 100w\" sizes=\"(max-width: 790px) 100vw, 790px\"><\/p>\n<p id=\"caption-attachment-70125\" class=\"wp-caption-text\">Caturegli posted this screenshot of MasterCard domains that were potentially at risk from the misconfigured domain.<\/p>\n<\/div>\n<p>As the screenshot above shows, the misconfigured DNS server Caturegli found involved the MasterCard subdomain <strong>az.mastercard.com<\/strong>. It is not clear exactly how this subdomain is used by MasterCard, however their naming conventions suggest the domains correspond to production servers at Microsoft\u2019s <strong>Azure<\/strong> cloud service. Caturegli said the domains all resolve to Internet addresses at Microsoft.<\/p>\n<p>\u201cDon\u2019t be like Mastercard,\u201d Caturegli concluded in his LinkedIn post. \u201cDon\u2019t dismiss risk, and don\u2019t let your marketing team handle security disclosures.\u201d<\/p>\n<p>One final note: The domain akam.ne has been registered previously \u2014 in December 2016 by someone using the email address um-i-delo@yandex.ru. The Russian search giant Yandex reports this user account belongs to an \u201cIvan I.\u201d from Moscow. Passive DNS records from <a href=\"https:\/\/www.domaintools.com\/\" target=\"_blank\" rel=\"noopener\">DomainTools.com<\/a> show that between 2016 and 2018 the domain was connected to an Internet server in Germany, and that the domain was left to expire in 2018.<\/p>\n<p>This is interesting given <a href=\"https:\/\/www.linkedin.com\/feed\/update\/urn:li:activity:7285038365236682753?commentUrn=urn%3Ali%3Acomment%3A%28activity%3A7285038365236682753%2C7285221445796835329%29&amp;replyUrn=urn%3Ali%3Acomment%3A%28activity%3A7285038365236682753%2C7285223757982363648%29&amp;dashCommentUrn=urn%3Ali%3Afsd_comment%3A%287285221445796835329%2Curn%3Ali%3Aactivity%3A7285038365236682753%29&amp;dashReplyUrn=urn%3Ali%3Afsd_comment%3A%287285223757982363648%2Curn%3Ali%3Aactivity%3A7285038365236682753%29\" target=\"_blank\" rel=\"noopener\">a comment on Caturegli\u2019s LinkedIn post from an ex-Cloudflare employee<\/a> who linked to a report he co-authored on a similar typo domain apparently registered in 2017 for organizations that may have mistyped their AWS DNS server as \u201c<strong>awsdns-06.ne<\/strong>\u201d instead of \u201c<strong>awsdns-06.net<\/strong>.\u201d DomainTools reports that this typo domain also was registered to a Yandex user (playlotto@yandex.ru), and was hosted at the same German ISP \u2014 Team Internet (AS61969).<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    BrianKrebs<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/krebsonsecurity.com\/2025\/01\/mastercard-dns-error-went-unnoticed-for-years\/\">Go to krebsonsecurity<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>MasterCard DNS Error Went Unnoticed for Years The payment card giant MasterCard just fixed a glaring error in its domain name server settings that could have allowed anyone to intercept or divert Internet traffic for the company by registering an unused domain name. The misconfiguration persisted for nearly five years until a security researcher spent [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[188,615,616,617,618,619,147,620,146,163,614,55,621,622,623],"tags":[72],"class_list":["post-1482","post","type-post","status-publish","format-standard","hentry","category-a-little-sunshine","category-akam-ne","category-akam-net","category-akamai","category-awsdns-06-ne","category-az-mastercard-com","category-azure","category-bugcrowd","category-cloudflare","category-google","category-how-to-break-into-security","category-krebsonsecurity","category-mastercard","category-philippe-caturegli","category-seralys","tag-krebsonsecurity"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/1482"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=1482"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/1482\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=1482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=1482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=1482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}