Gatekeepers of Bad Software

Software development gone wrong: ASP plus Access not equal to secure Web portal.

The HR department at a financial services firm wanted to hire GlobalComp to build a Web portal.

Getting approval was straightforward: the purchaser set up a meeting between GlobalComp and an "integration services" developer on the IT team, and then waited a few days.

After a brief spiel from the GlobalComp sales rep, Steve opened with a softball question: "Is it secure?"

"Of course it's secure," the rep said. "At GlobalComp we take security very seriously. In fact, our pages are delivered over Secure Socket Lay—"

"Wait a sec," Steve cut him off, as he played around with the Web portal. "I think I just broke into your admin console."

The GlobalComp rep stumbled through an apology. It was clear that the developers had never anticipated someone typing ' OR ''=' in the password field. Steve thought it'd be a good idea to do a code review to see what else they had missed.

A Code Tour
Before Steve was permitted to even talk to a developer at GlobalComp, they had him sign a an NDA. As an added security measure, Steve could only review the code while the immaculately dressed Dave, GlobalComp's lead developer, watched him. "You'd be surprised," Dave said in a serious tone, "there are a lot of people who would steal our software ideas."

Steve's first port of call was login.asp. But it wasn't the security snafus or the FrontPage meta-tags that caught his eye. Not only were they using Access, but they had come up with a rather interesting way of caching huge amounts (400K+) of user-specific info. They used the ASP Session object:

set cn = Server.CreateObject(_
cn.Provider = _
cn.Open "C:\inetpub\wwwroot\db.mdb"
set rs = Server.CreateObject(_
rs.Open "SELECT * FROM Users " & _
" WHERE Username = '" & _
Username & _
"' AND Password = '" & _
Password & "'", cn
do until rs.EOF
session("USERNAME") = rs("username")
session("COMPANY") = rs("company")
session("LOCATION") = rs("location")
session("ADDRESS1") = rs("address1")
session("ADDRESS2") = rs("address2")
session("ADDRESS3") = rs("address3")
session("ADDRESS4") = rs("address4")
session("HTML_BLOCK_1") = rs("html1")
…180 columns later…
session("YET_ANOTHER_FIELD") = _
"I can't help but notice that this is in ASP," Steve said to Dave. "I'm curious: why not .NET? Do you have a lot of ASP libraries that you're reusing?"

"It's 2006," Dave snapped back, "not 2015. Everyone knows that .NET hasn't really taken off yet. It's slow, difficult to code and very buggy. Maybe in a few years we'll consider it, but until then, ASP is far quicker and more powerful."

"For optimization," Steve commented, "wouldn't it have made sense to go with SQL Server? This portal is meant to be used by thousands of users across the country. Do you think Access is up to the job?"

"What's wrong with Access?" Dave defensively questioned. "When I was at Accenture, we used it all the time."

Steve had seen enough. "In light of the numerous performance, security and dataintegrity issues," his review read, "we do not approve GlobalComp's Web portal software for use in our production environments."

It was the first time anyone in the department had ever given a non-approval for vendor software. They felt relieved to have successfully acted as the gatekeeper of bad software.

Tell Us Your Tale
Each issue Alex Papadimoulis, publisher of the popular Web site The Daily WTF, recounts first-person tales of software development gone terribly wrong. Have you experienced the darker side of development? We want to publish your story. E-mail your tale to Executive Editor Kathleen Richards at [email protected] and use "DevDisasters" as the subject line.

About the Author

Alex Papadimoulis lives in Berea, Ohio. The principal member of Inedo, LLC, he uses his 10 years of IT experience to bring custom software solutions to small- and mid-sized businesses and to help other software development organizations utilize best practices in their products. On the Internet, Alex can usually be found answering questions in various newsgroups and posting some rather interesting real-life examples of how not to program on his Web site You can contact Alex directly via email at [email protected].,

comments powered by Disqus


  • Top Free Extensions for Visual Studio 2022

    With Visual Studio 2022 having debuted just one month ago, there are now dozens of new extensions available specifically targeting the revolutionary 64-bit IDE.

  • Green Motherboard Closeup Graphic

    How to Compute Transformer Architecture Model Accuracy

    Dr. James McCaffrey of Microsoft Research uses the Hugging Face library to simplify the implementation of NLP systems using Transformer Architecture (TA) models.

  • VS Code Snippets Leads Recent Open Source GA Announcements

    GitHub's "Release Radar" for November shows a Visual Studio Code snippets project leading a raft of open source offerings that reached general availability in November.

  • C# Language Server Revamps VS 2022 Razor Editor for ASP.NET Core

    Microsoft is touting new capabilities in ASP.NET Core web development in Visual Studio 2022 thanks to a new Razor editor powered by a Razor Language Server.

Upcoming Events