Site Sponsor:

mcafee_logo.gif
line

Now Available:

Featured Resource:

line

Newsletter

Email Address:


line

Ask the Expert

Have a question for our resident expert? Email your questions to Dan or post a comment to the blog.

« Network Admin Sticks it to San Francisco; Now Guest in SF Jail | Main | Costly Insider Attacks »

Yet Another Form of Injection Attack: Web Redirects

Brian Kreb's Security Fix discusses some research out of Indiana University on how phishers and others can use open redirects in legitimate Web sites. In addition to the clear examples of hacked redirects Krebs provides, I add that this is yet another example of an injection attack that stems from the way software engineers design modular software.

Software engineers and programmers are taught from Day 1 that programs should be broken down into logical units of work with minimal dependencies between modules. The way to accomplish this kind of decoupling is to parameterize procedures. Need to do slightly different things in different parts of the code? No problem, add a parameter to the procedure and let the calling code tell you what it needs. This works well in monolithic programs that are only called by other pieces of known, controlled code but it falls down with open systems like the Web or when the parameter comes from an untrusted user.

Dynamic Web redirects that take the destination as a parameter creates the possibility to substitute a phishing site, or other malicious destination, for a legitimate site. The problem is when there is no verification before the redirect is executed. Whitelists can be used to verify destinations before executing, for example. More details are available in the researcher's paper (pdf).

Programming techniques that worked well in the past still work well but require additional attention to security in open environments. The old adage "trust, but verify" should come to mind every time we add an open access parameter to an application.

TrackBack

TrackBack URL for this entry:
http://www.realtime-websecurity.com/type/mt-tb.cgi/787

Post a comment

(All comments are approved by site leader before appearing here. Thanks for commenting!)

line

Dan Sullivan's Bio:

Dan Sullivan is a systems architect with 20 years of IT experience that includes engagements in enterprise security, application design, and systems architecture. His experience includes a broad range of industries, including financial services, manufacturing, government, retail, gas and oil production, power generation, and education. Dan’s security-related project work has ranged from requirements analysis for enterprise information security to designing and implementing security for database applications and enterprise portals. Dan has written about information security and other enterprise information management topics for Business Security Advisor, DM Review, Intelligent Enterprise, and E-Business Advisor. You can contact Dan at: dan_sullivan@realtimepublishers.net