Search

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

Advertisement
New Static Analysis Method Can Help Find Security Flaws in Web Apps: Study
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 a program 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.

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.

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

"The program 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 the latest tech news and reviews, follow Gadgets 360 on X, Facebook, WhatsApp, Threads and Google News. For the latest videos on gadgets and tech, subscribe to our YouTube channel. If you want to know everything about top influencers, follow our in-house Who'sThat360 on Instagram and YouTube.

Further reading: Apps, Internet, MIT, Science, Web Apps
 
Show Full Article
Please wait...
Advertisement

Related Stories

Popular Mobile Brands
  1. CMF Phone 2 Rear Panel With Textured Design Teased by Nothing
  2. These Upcoming Smartphones Are Scheduled to Launch in India in April
  3. OnePlus 13T Launch: Specifications, Design and Everything We Know So Far
  4. Oppo Reno 14 Pro Leak Reveals Key Specifications, Revamped Camera Design
  1. ChatGPT Plus Free Access for Select Users Announced Until the End of May
  2. CMF Phone 2 Rear Panel With Textured Design Teased by Nothing Ahead of Debut
  3. Musk-Altman Fight Over OpenAI Overhaul Set for March Trial
  4. Oppo Reno 14 Pro Key Specifications, Design Render Showing Redesigned Camera Layout Leaked
  5. Meta Nears Release of New AI Model Llama 4 in April: Report
  6. Massive Steam Plume Spotted at Alaska’s Mount Spurr as Volcano May Erupt Soon
  7. Study Identifies Plasma Formation as a Pseudostreamer
  8. SpaceX Launches 27 Starlink Satellites on Falcon 9 Rocket, Booster Lands Safely
  9. Bats Avoid Mid-Air Crashes by Adjusting Their Echolocation During Flight
  10. Anti-CBDC Bill Cleared by House Financial Services Committee in US: Details
Gadgets 360 is available in
Download Our Apps
App Store App Store
Available in Hindi
App Store
© Copyright Red Pixels Ventures Limited 2025. All rights reserved.
Trending Products »
Latest Tech News »