When even .gov sites lead you down the wrong path

 

Connecting state and local government leaders

The recent exploit of open redirect in some shortened .gov Web addresses underscores the importance of server configuration to guard against easily prevented problems.

An old trick made some new news in the past week as spammers took advantage of a URL shortening service for .gov websites to redirect Web traffic to malicious sites.

“This type of tactic is nothing new,” said Eric Park, a senior analyst at Symantec who reported on the exploits. “It’s a little unfortunate in this case because of the .gov thing. People tend to think they can trust it.”

In fact, trust is exactly what USA.gov is promoting in its collaboration with Bitly.com, a service that allows users to create shortened URLs that are convenient to share. “Now, whenever anyone uses Bitly to shorten a URL that ends in .gov or .mil, they will receive a short, trustworthy 1.USA.gov URL in return,” the General Services Administration says on its HowTo.gov website.

The violation of that trust in these attacks underscores the importance of server configuration in guarding against easily prevented problems.

The URL shortening service for government domains is called 1.USA.gov, and it works by simply putting a .gov URL into the Bitly Web page and clicking “shorten” to produce a new, short URL with the 1.USA.gov domain. But the shortened URL will not show where a request might be redirected to.

“This is not a security issue at Bitly or with our short URLs,” said Hilary Mason, chief scientist at Bitly. “It’s an issue with government websites using open redirect that allows the government site to redirect to a spam website.”

It is not a problem specific to 1.USA.gov, but to any site that allows open redirection, in which a URL is modified to take a user to a site other than the one it might look like they’re going to. For example, the link http://www.baltimorecity.gov goes to the home page for the City of Baltimore, but the link http://www.baltimorecity.gov/LinkClick.aspx?link=http://google.com when shortened will look like a standard baltimorecity.gov link, but will actually redirect to google.com.

“Spammers have noticed that certain .gov URLs have open redirect enabled” and took advantage of it to deliver traffic to malicious sites, Symantec’s Park said.

All of which raises the question, why enable open redirect at all? Most government sites probably don’t, Park said. “I don’t think there is a legitimate business need today for it.”

He admitted that he might be biased on this subject. “I’m an anti-spam guy,” he said. But he is not alone. The Open Web Application Security Project describes open redirect as a vulnerability  that should be eliminated by requiring validation that a redirected target server has a relation to the original target server before allowing redirection to occur.

The good news in this is that Bitly and GSA both took action when the problem was discovered.

“We moved very quickly to block these redirections,” Mason said. She said Bitly takes such issues seriously and notified partners at USA.gov about the problem.
 
A GSA spokesman said the agency has removed the affected domains and is working with government Web managers to help with removing the vulnerability.

The response apparently has worked. The 1.USA.gov service publishes metrics about the number of redirected visits, and Park said that as of Oct. 23 there had been just short of 59,000 total redirects to spam sites. But the daily number has been dropping sharply -- since the initial publication of the problem  on Oct. 17, the number of redirected clicks had dropped from about 15,000 on Oct. 19 to just a handful on each of the next three days.

GSA says it is turning the recent incident into a learning situation. “This has allowed us to learn of some vulnerabilities on some government websites and will help us find more in the future,” the agency said in a statement.

Let’s hope that administrators and managers take advantage of this lesson and make sure they know what servers are on their systems and understand how they are configured.

X
This website uses cookies to enhance user experience and to analyze performance and traffic on our website. We also share information about your use of our site with our social media, advertising and analytics partners. Learn More / Do Not Sell My Personal Information
Accept Cookies
X
Cookie Preferences Cookie List

Do Not Sell My Personal Information

When you visit our website, we store cookies on your browser to collect information. The information collected might relate to you, your preferences or your device, and is mostly used to make the site work as you expect it to and to provide a more personalized web experience. However, you can choose not to allow certain types of cookies, which may impact your experience of the site and the services we are able to offer. Click on the different category headings to find out more and change our default settings according to your preference. You cannot opt-out of our First Party Strictly Necessary Cookies as they are deployed in order to ensure the proper functioning of our website (such as prompting the cookie banner and remembering your settings, to log into your account, to redirect you when you log out, etc.). For more information about the First and Third Party Cookies used please follow this link.

Allow All Cookies

Manage Consent Preferences

Strictly Necessary Cookies - Always Active

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data, Targeting & Social Media Cookies

Under the California Consumer Privacy Act, you have the right to opt-out of the sale of your personal information to third parties. These cookies collect information for analytics and to personalize your experience with targeted ads. You may exercise your right to opt out of the sale of personal information by using this toggle switch. If you opt out we will not be able to offer you personalised ads and will not hand over your personal information to any third parties. Additionally, you may contact our legal department for further clarification about your rights as a California consumer by using this Exercise My Rights link

If you have enabled privacy controls on your browser (such as a plugin), we have to take that as a valid request to opt-out. Therefore we would not be able to track your activity through the web. This may affect our ability to personalize ads according to your preferences.

Targeting cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising.

Social media cookies are set by a range of social media services that we have added to the site to enable you to share our content with your friends and networks. They are capable of tracking your browser across other sites and building up a profile of your interests. This may impact the content and messages you see on other websites you visit. If you do not allow these cookies you may not be able to use or see these sharing tools.

If you want to opt out of all of our lead reports and lists, please submit a privacy request at our Do Not Sell page.

Save Settings
Cookie Preferences Cookie List

Cookie List

A cookie is a small piece of data (text file) that a website – when visited by a user – asks your browser to store on your device in order to remember information about you, such as your language preference or login information. Those cookies are set by us and called first-party cookies. We also use third-party cookies – which are cookies from a domain different than the domain of the website you are visiting – for our advertising and marketing efforts. More specifically, we use cookies and other tracking technologies for the following purposes:

Strictly Necessary Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Functional Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Performance Cookies

We do not allow you to opt-out of our certain cookies, as they are necessary to ensure the proper functioning of our website (such as prompting our cookie banner and remembering your privacy choices) and/or to monitor site performance. These cookies are not used in a way that constitutes a “sale” of your data under the CCPA. You can set your browser to block or alert you about these cookies, but some parts of the site will not work as intended if you do so. You can usually find these settings in the Options or Preferences menu of your browser. Visit www.allaboutcookies.org to learn more.

Sale of Personal Data

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Social Media Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.

Targeting Cookies

We also use cookies to personalize your experience on our websites, including by determining the most relevant content and advertisements to show you, and to monitor site traffic and performance, so that we may improve our websites and your experience. You may opt out of our use of such cookies (and the associated “sale” of your Personal Information) by using this toggle switch. You will still see some advertising, regardless of your selection. Because we do not track you across different devices, browsers and GEMG properties, your selection will take effect only on this browser, this device and this website.