New Static Analysis Method Can Help Find Security Flaws in Web Apps: Study

Advertisement
By Press Trust of India | Updated: 18 April 2016 12:54 IST
MIT researchers have developed a system that can quickly comb through tens of thousands of lines of application codes to find security flaws in popular web applications.

In tests on 50 popular applications written using Web programming framework Ruby on Rails, the system found 23 previously undiagnosed security flaws, and took no more than 64 seconds to analyse any given program.

According to researchers from Massachusetts Institute of Technology (MIT) in the US, the new system uses a technique called static analysis which seeks to describe in a very general way how data flows through a program.

Advertisement

"The classic example of this is if you wanted to do an abstract analysis of aprogram that manipulates integers, you might divide the integers into the positive integers, the negative integers, and zero," said Daniel Jackson from MIT.

The static analysis would then evaluate every operation in the program according to its effect on integers' signs.

Advertisement

Adding two positives yields a positive; adding two negatives yields a negative; multiplying two negatives yields a positive; and so on, researchers said.

"The problem with this is that it cannot be completely accurate, because you lose information. If you add a positive and a negative integer, you do not know whether the answer will be positive, negative, or zero," said Jackson.

Advertisement

"Most work on static analysis is focused on trying to make the analysis more scalable and accurate to overcome those sorts of problems," he said.

With Web applications, however, the cost of accuracy is prohibitively high, Jackson said.

Advertisement

"Theprogram under analysis is just huge. Even if you wrote a small program, it sits atop a vast edifice of libraries and plug-ins and frameworks," he said.

"So when you look at something like a Web application written in language like Ruby on Rails, if you try to do a conventional static analysis, you typically find yourself mired in this huge bog. And this makes it really infeasible in practice," he added.

A library is a compendium of code that programmers tend to use over and over again. Rather than rewriting the same functions for each new program, a programmer can just import them from a library, researchers said.

Ruby on Rails - or Rails - has the peculiarity of defining even its most basic operations in libraries. Every addition, every assignment of a particular value to a variable, imports code from a library, they said.

Researchers rewrote those libraries so that the operations defined in them describe their own behavior in a logical language. That turns the Rails interpreter, which converts high-level Rails programs into machine-readable code, into a static-analysis tool.

They identified seven different ways in which Web applications typically control access to data. Some data are publicly available, some are available only to users who are currently logged in, some are private to individual users, some users - administrators - have access to select aspects of everyone's data, and so on.

 

Get your daily dose of tech news, reviews, and insights, in under 80 characters on Gadgets 360 Turbo. Connect with fellow tech lovers on our Forum. Follow us on X, Facebook, WhatsApp, Threads and Google News for instant updates. Catch all the action on our YouTube channel.

Further reading: Apps, Internet, MIT, Science, Web Apps
Advertisement

Related Stories

Popular Mobile Brands
  1. OnePlus 16 Said to Feature 185Hz Refresh Rate Display
  2. Here's Why the iPhone 18 Could Ship With More RAM
  3. Redmi Turbo 5 vs Motorola Edge 70 Pro vs Samsung Galaxy A37 5G Compared
  4. Microsoft Surface, Surface Pro Launched With Snapdragon X2 Chips: See Price
  5. Athiradi OTT Release Date: When and Where to Watch it Online?
  6. Drishyam 3 OTT Release Date: When and Where to Watch Mohanlal's Crime Thriller Online?
  7. Snap Launches Specs AR Glasses With a Built-In Display at This Price
  8. Sony Unveils Lytia L910 Sensor With LOFIC Structure, Better HDR Imaging
  1. Silo Season 3 OTT Release Date Revealed: When and Where to Watch it Online?
  2. Xiaomi 18 Pro Could Launch Before Standard Xiaomi 18 Model, Tipster Claims
  3. Google Pixel Drop for June Brings Android 17’s Real-Time Screen Reactions, Bubbles Features to Pixel Phones
  4. iPhone 18 to Launch With More RAM to Enable Support for More Advanced Siri AI Features: Report
  5. Cryptocurrency Prices Stabilise as US Fed Rate Cut Outlook Guides Investor Sentiment
  6. Kolahalamedu Out on OTT: Know Where to Stream This Malayalam Survival Thriller Film Online
  7. Microsoft's Copilot Cowork Feature Rolls Out Globally for Microsoft 365 Customers
  8. Sony Unveils Lytia L910 CMOS Image Sensor With LOFIC Structure, 4K 60fps Video Support
  9. Epson Expands EcoTank Portfolio in India With 15 New Printer Models
  10. Unannounced The Witcher Multiplayer Game for PC and Mobile Reportedly in the Works at CD Projekt Red
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.