Cities, states, federal and military agencies should patch the Laserfiche CMS post-haste, said the security researcher whose jaw dropped at 50 sites hosting porn and Viagra spam.
<div class="c-article__content js-reading-content"> <p>U.S. military and government website subdomains have a sticky problem: They’re “quite vulnerable” to blackhat SEO tactics that result in persistent redirects to spammy Viagra ads and porn videos.</p> <p>An example is one that showed up on a dot.mil subdomain on the Minnesota National Guard site (you can have your own fun searching on terms such as “buy generic and brand Viagra” on dot-gov and dot-mil sites: Plenty of these ads are still out there) that asks this question:</p> <blockquote><p>How are erections measured while a man sleeps? Two small rings are placed around the penis, one at the tip and one at the base.</p></blockquote> <p>Security researcher Zach Edwards told <a href="https://www.vice.com/en/article/pkb5qy/why-government-and-military-sites-are-hosting-porn-and-viagra-adsovernm" target="_blank" rel="noopener">Motherboard’s Vice</a> – which first reported his findings – that the reason a lot of government websites are hosting these spammy ads is that an array of government agencies are using the same software: one that, it turns out, has a now-patched vulnerability that allowed third parties to push files to these sites without the site owners’ permission.</p> <p>It’s called <a href="https://www.laserfiche.com/" target="_blank" rel="noopener">Laserfiche</a>, and it’s made by a government software provider that produces content management systems and sells them to the Army, the Navy, the FBI and more, according to public procurement records such as this one for the City of Fort Worth (<a href="https://publicdocuments.fortworthtexas.gov/CSODOCS/doc/191751/Page2.aspx?repo=City-Secretary&dbid=0" target="_blank" rel="noopener">PDF</a>).</p> <p><a href="https://threatpost.com/infosec-insider-subscription-page/?utm_source=ART&utm_medium=ART&utm_campaign=InfosecInsiders_Newsletter_Promo/" target="_blank" rel="noopener"><img loading="lazy" class="aligncenter wp-image-168544 size-full" src="https://media.threatpost.com/wp-content/uploads/sites/103/2021/07/10165815/infosec_insiders_in_article_promo.png" alt="Infosec Insiders Newsletter" width="700" height="50"></a></p> <p>“This vulnerability created phishing lures on .gov and .mil domains that would push visitors into malicious redirects, and potentially target these victims with other exploits,” Edwards told Motherboard in an online chat.</p> <p>Blackhat SEO campaigns featuring redirects have been going on for years, sometimes as <a href="https://threatpost.com/seo-scareware-campaign-compromises-200k-websites-111709/73121/" target="_blank" rel="noopener">scareware</a> but, when it comes to redirects to porn, mostly as trolling. Historically they’ve disappeared quickly as visitors have reported them, Edwards pointed out.</p> <p>But these new exploits, which Edwards has tracked over the past year and detailed in the video below, are more sophisticated and don’t mop up so easily.</p> <div class="c-video-container"><iframe loading="lazy" title=".Gov compromises hosting online Pharmacy content w/ obfuscation" width="500" height="375" src="https://www.youtube.com/embed/7T1HBpO_Xlw?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div> <p>You can see the attraction: search engine optimization (SEO) massively benefits from the dot-gov domain, and the longer a domain can cling to government or military sites, the better off its SEO credibility.</p> <p>Edwards has spotted these ads on subdomains including on <a href="https://twitter.com/thezedwards/status/1375118316021280772" target="_blank" rel="noopener">Senator John Tester’s site</a> and the Minnesota National Guard one above, which you might have mistaken for a legitimate site about a clinical health trial until you clicked through and found Viagra spam. That Minnesota spam has been taken down, but you can read the <a href="https://web.archive.org/web/20210914181655/https://webcache.googleusercontent.com/search?q=cache%3Acxm1jQe2uNEJ%3Ahttps%3A%2F%2Fminnesotanationalguard.ng.mil%2Fdocuments%2F2019%2F12%2Ffamily-statement-for-sgt-kort-m-plantenberg.pdf+&cd=6&hl=en&ct=clnk&gl=us" target="_blank" rel="noopener">original post</a> on the web archive.</p> <p>092021 09:15 UPDATE: Laserfiche reached ou to Threatpost to inform us that neither the Senator’s site nor the Minnesota National Guard subdomain use the Laserfiche product. <u></u><u></u></p> <p>The issue is that there’s an open-redirect problem: The redirects are cached through inappropriate domain names and, if clicked, will send visitors to porn subdomains on the dot-mil and dot-gov sites.</p> <p>Edwards said that he’s seen the problem on about 50 different government subdomains over the years, but typically they disappear fast: “You can report them [and] they disappear relatively quickly because I think people see them, and it’s jarring, so people report them,” he said in the video.</p> <p>Not so with Canadian pharmacy redirects he’s been finding: “They’re extremely sophisticated and they seem to be persistent,” he said. “What’s kind of wild about them [is that] all of these scams are trying to persist their SEO benefits that they get from dot-gov domains so … by keeping their Canadian pharmacy URL and various content like Viagra and the products that they sell on a dot-gov compromised page for a significant period of time. It will increase, or it should theoretically increase, not only in Google but other search engines, basically, the domain credibility of these random Canadian pharmacies.”</p> <p>Below is a screenshot taken on Friday at 10:35 ET that shows search results for the term “buy generic and brand Viagra” on .gov websites. A Canada pharmacy’s ad for Viagra places high up in search results: It’s the third returned site.</p> <p><a href="https://media.threatpost.com/wp-content/uploads/sites/103/2021/09/17103844/091721-web-search-on-buy-generic-viagra--e1631889539268.jpg" target="_blank" rel="noopener"><img loading="lazy" class="alignnone size-large wp-image-174796" src="https://media.threatpost.com/wp-content/uploads/sites/103/2021/09/17103844/091721-web-search-on-buy-generic-viagra--1024x719.jpg" alt="" width="1024" height="719"></a></p> <h2>Tracing It to Laserfiche</h2> <p>Edwards told Vice that he traced the dicey uploads to Laserfiche after he found an Idaho.gov domain hosting the offending files and displaying a specific Laserfiche error message. A Google search also found ads for in-game currency for the hugely popular Roblox game platform and others advertising alleged Xbox gift card generators.</p> <p>When Edwards approached Laserfiche about the problem, the company said that a vulnerability “allows an unauthorized party to temporarily upload files to a site,” according to a copy of an email that Edwards shared with Vice.</p> <h2>Anti-Porn, Etc. Patch Now Available</h2> <p>Laserfiche <a href="https://support.laserfiche.com/kb/1014315/laserfiche-forms-portal-file-upload-vulnerability" target="_blank" rel="noopener">publicly disclosed</a> that vulnerability and issued a critical security update in August. According to an update to his disclosure made last week, the Laserfiche forms portal file upload vulnerability is actively being exploited, enabling unauthenticated third parties to use Laserfiche Forms to “temporarily host uploaded files for distribution.”</p> <p>Valid customer form submission data isn’t affected, Laserfiche said, and isn’t accessible to unauthenticated third parties. The security updates – to Laserfiche Forms 10.4.5 – address this vulnerability “by reducing the time frame where the temporary file download link is active,” the company said.</p> <p>There are mitigations available for users who can’t immediately install updates on externally accessible Laserfiche Forms servers, though that is, indeed, what Laserfiche recommended.</p> <p>“The Laserfiche Forms 10.x security updates modify the default behavior of public forms to no longer provide a download link,” Laserfiche said in its update.</p> <p>Laserfiche also provided a <a href="https://support.laserfiche.com/kb/1014322/laserfiche-forms-public-portal-file-cleanup-tool" target="_blank" rel="noopener">cleanup tool</a> for Laserfiche Forms public portals to help affected customers scrub their portals clean.</p> <p>Edwards told Vice that installing the patch should be done post-haste: “There are a significant number of cities, states and federal agencies, including military agencies, which use Laserfiche and should immediately install the patch and determine whether the other remediation steps are required,” the researcher said. “For any Laserfiche vendors who are using an older version of software that does not have the fix yet, those agencies should be encouraged to either upgrade their software, or stay on alert.”</p> <p>091721 14:48 UPDATE: Added security researcher Zach Edwards’ first name.</p> <p>092021 09:15 UPDATE: Corrected date that Laserfiche issued its update, added Laserfiche’s input regarding the fact that two of the subdomains referenced in the article – Senator John Tester and the Minnesota National Guard – do not use the Laserfiche product.</p> <p><b>Rule #1 of Linux Security: </b>No cybersecurity solution is viable if you don’t have the basics down. <a href="https://threatpost.com/webinars/4-golden-rules-linux-security/?utm_source=ART&utm_medium=ART&utm_campaign=September_Uptycs_Webinar"><b>JOIN</b></a> Threatpost and Linux security pros at Uptycs for a LIVE roundtable on the <a href="https://threatpost.com/webinars/4-golden-rules-linux-security/?utm_source=ART&utm_medium=ART&utm_campaign=September_Uptycs_Webinar"><b>4 Golden Rules of Linux Security</b></a>. Your top takeaway will be a Linux roadmap to getting the basics right! <a href="https://threatpost.com/webinars/4-golden-rules-linux-security/?utm_source=ART&utm_medium=ART&utm_campaign=September_Uptycs_Webinar"><b>REGISTER NOW</b></a> and join the <b>LIVE event on Sept. 29 at Noon EST</b>. Joining Threatpost is Uptycs’ Ben Montour and Rishi Kant who will spell out Linux security best practices and take your most pressing questions in real time.</p> <footer class="c-article__footer"> <div class="c-article__footer__container"> <div class="c-article__footer__col"> <a href="#discussion" class="c-button c-button--secondary">Write a comment</a> </div> <div class="c-article__footer__col"> <div class="c-article__sharing"> <p><strong>Share this article:</strong></p> <nav class="c-nav-sharing"> <div class="social-likes social-likes_notext" data-title="Porn Problem: Adult Ads Persist on US Gov’t, Military Sites" data-url="https://threatpost.com/porn-viagra-spams-govt-military-sites/174794/" data-counters="no" data-zeroes="yes"><div class="facebook" title="Share via Facebook"></div> <div class="twitter" title="Share via Twitter"></div><div class="linkedin" title="Share via LinkedIn"></div> <div class="reddit" title="Share via Reddit"></div> <div class="flipboard" title="Share via Flipboard"></div> </div> </nav> </div> </div> </div> <div class="c-article__footer__container"> <div class="c-article__footer__col"></div> <div class="c-article__footer__col"> <ul class="c-list-categories"> <li><a class="c-label c-label--secondary-transparent" href="https://threatpost.com/category/vulnerabilities/">Vulnerabilities</a></li> <li><a class="c-label c-label--secondary-transparent" href="https://threatpost.com/category/web-security/">Web Security</a></li> </ul> </div> </div> </footer> </div>