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.

"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.

Advertisement

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.

 

For details of the latest launches and news from Samsung, Xiaomi, Realme, OnePlus, Oppo and other companies at the Mobile World Congress in Barcelona, visit our MWC 2025 hub.

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

Related Stories

Popular Mobile Brands
  1. Nothing Phone 4a, Phone 4a Pro Launched in India at This Price
  2. Realme Narzo Power 5G With 10,001mAh Battery Launched in India: Price, Specifications
  3. Vivo T5x 5G AnTuTu Score Exceeds 1 Million Points, Will Launch in India Soon
  4. OnePlus 15T Confirmed to Launch With a Larger Battery, Faster Charging
  5. Nothing Phone 4a Pro First Impressions
  6. Infinix Note 60 Ultra With Pininfarina Design Launched at MWC 2026
  7. Samsung Galaxy A47 5G, Galaxy A57 5G Specifications Leak Ahead of Launch
  8. Here's When the Xiaomi 17T Could Make Its Way to India
  9. Moto Watch Review: The Best Smartwatch Under Rs. 6,000 in 2026?
  10. Google Just Dropped the Fastest Gemini 3 Series AI Model
  1. Samsung Galaxy A37 5G and Galaxy A57 5G Specifications Reportedly Leaked in Full Ahead of Launch
  2. ISS Crew Prepares to Send Japan’s HTV-X1 Cargo Spacecraft Back to Earth After Four Months
  3. OpenAI’s Codex App Is Now Available on Windows, Can Be Downloaded via Microsoft Store
  4. OpenAI Teases GPT-5.4 AI Model Launch Just a Day After Releasing GPT-5.3 Instant
  5. Nothing Headphone (a) Launched With Adaptive ANC, Customisable Controls: Price, Specifications
  6. Granny OTT Release Date: When and Where to Watch the Village Mystery Thriller Online?
  7. Andhaka OTT Release: Where to Watch the Telugu Drama-Thriller Online?
  8. Pookie OTT Release: When and Where to Watch Vijay Antony’s Romantic Drama Online?
  9. WhatsApp Plus Paid Subscription Reportedly in Development With Additional Customisation Options, Up to 20 Pinned Chats
  10. Samsung Patent Hints at Potential Clamshell-Style Foldable With Two Cover Displays
Download Our Apps
Available in Hindi
© Copyright Red Pixels Ventures Limited 2026. All rights reserved.