Close
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
Read Down
Sign in
Close
Welcome!Log into your account
Forgot your password?
Read Down
Password recovery
Recover your password
Close
Search
Logo
Subscribe
Logo
  • Latest News
  • Artificial Intelligence
  • Video
  • Big Data and Analytics
  • Cloud
  • Networking
  • Cybersecurity
  • Applications
  • IT Management
  • Storage
  • Sponsored
  • Mobile
  • Small Business
  • Development
  • Database
  • Servers
  • Android
  • Apple
  • Innovation
  • Blogs
  • PC Hardware
  • Reviews
  • Search Engines
  • Virtualization
More
    Subscribe
    Home Applications
    • Applications
    • Cloud
    • Cybersecurity
    • Development

    SQL Injection

    By
    Fahmida Y. Rashid
    -
    December 22, 2011
    Share
    Facebook
    Twitter
    Linkedin

      eWEEK content and product recommendations are editorially independent. We may make money when you click on links to our partners. Learn More.

      PrevNext

      1SQL Injection

      1

      Arguably one of the easier attacks to prevent, SQL injection is also the most common software bug in applications. Attackers enter database commands into an online form to directly access the database and siphon away data. Developers need to build in logic to handle invalid input to block this type of attack.

      2Operating System Injection

      2

      Similar to SQL injection, attackers use the form to send operating system calls to the server. The server doesn’t realize the commands are coming from the form and executes them, with disastrous results.

      3Classic Buffer Overflow

      3

      Classic buffer overflow happens when programmers access the buffer, a section of memory, without checking the size of the input. The application may try to write more information than the buffer can handle, and the spillover gives attackers a foothold into the environment.

      4Cross-Site Scripting

      4

      Another very common issue allows attackers to insert malicious logic into a program to interfere with the user experience. Users may wind up getting redirected to a different site. Attackers can exploit XSS to intercept sensitive data from a user session.

      5Authorization/Authentication Flaws

      5

      The SANS Institute grouped the following issues into a category called “Porous Defenses,” noting that the weaknesses are caused by defensive techniques that are often “misused, abused or just plain ignored.” If executed correctly, these methods would have secured the application. Incorrect implementation results in a gaping security flaw.

      6Unrestricted Upload of Files With Dangerous Code Types

      6

      Developers may allow users to upload innocent images, but the attacker may be hiding a malicious file behind a different extension. If not handled properly, the server could execute PHP script or other executable code instead of simply displaying the image it expected, leading to a system compromise.

      7Access Control Mistakes

      7

      Another set of “Porous Defenses,” these flaws are related to access control and user privileges. SANS compared the errors to a bartender not always checking people’s IDs to verify age just because the customer “looks” fine. Attackers can intercept and modify the data being sent to the server and if the application doesn’t verify the data, attackers can bypass security. Attackers can also take advantage of extra privileges the application has that may not really be necessary to execute its job.

      8Cross-Site Request Forgery

      8

      Cross-site request forgery attacks often result in data loss or code execution and are a popular technique. The attacker tricks a user into activating a request that the server thinks came from the user and therefore gives the attacker the privileges and access as the user. Internet worms that cripple very large Websites are often using CSRF. When combined with XSS, the damage can be extensive and devastating.

      9Risky Resource Management

      9

      The “Risky Resource Management” category involves software that’s not properly managing the creation, usage, transfer or safe destruction of important system resources. The path traversal flaw exposes all the files on the system, giving attackers information that enables access to system files and other parts of the server they should never see. The second flaw occurs when developers allow external code to execute without verifying its legitimacy or whether or not it has been tampered with.

      10Incorrect Authorization

      10

      While not having any authorization to access code is a problem, putting in controls to certain resources that can easily be bypassed is just pointless. A common attack path takes advantage of the cookie a Web application places on the user’s computer that contains certain site permissions. An attacker modifies that cookie to access other resources.

      11Not Knowing Whose Code Is Being Executed

      11

      Developers regularly insert code from third-party sources into large programs to get certain functionality. If they aren’t checking where the code is coming from and verifying it hasn’t been tampered with, someone else’s code is being imported, resulting in a security bypass. When potentially dangerous functions with lots of privileges aren’t handled correctly, “things can get real messy real quick,” according to SANS.

      12Data Permissions and Protection Issues

      12

      Files, programs and data stores should not have more permissions than they need. If they are world-readable or -writable, then don’t be surprised when the world takes advantage of that. The same thing applies to sensitive data. They shouldn’t be protected using cryptographic algorithms that are known to have issues or even worse, a home-brewed one. And as Sony and a number of companies this year should have learned, adding salt to a hash can make it difficult for attackers to crack passwords.

      13Improper Restriction of Excessive Authentication Attempts

      13

      “If at first you don’t succeed, try try again” is not what the attackers should be thinking when trying to brute-force login credentials. Many major sites don’t lock out the user after several incorrect attempts. This allows attackers to repeatedly guess different passwords until they finally nail the correct one. Considering the extremely week passwords too many users cling to, it doesn’t take attackers many tries to get it right.

      14Open Redirect

      14

      Attackers can specify an arbitrary URL that the user who clicks on a link gets redirected to. Victims can be redirected to a malicious site that attempts to download malware, or to a site designed for phishing sensitive information, or even causes a denial of service attack on the machine.

      15Buffer, String and Integer Issues

      15

      The final group of resource management issues involves ways memory and program variables are not protected. This allows attackers to modify input and output and execute code that wasn’t intended by the program.

      PrevNext

      Get the Free Newsletter!

      Subscribe to Daily Tech Insider for top news, trends & analysis

      MOST POPULAR ARTICLES

      Artificial Intelligence

      9 Best AI 3D Generators You Need...

      Sam Rinko - June 25, 2024 0
      AI 3D Generators are powerful tools for many different industries. Discover the best AI 3D Generators, and learn which is best for your specific use case.
      Read more
      Cloud

      RingCentral Expands Its Collaboration Platform

      Zeus Kerravala - November 22, 2023 0
      RingCentral adds AI-enabled contact center and hybrid event products to its suite of collaboration services.
      Read more
      Artificial Intelligence

      8 Best AI Data Analytics Software &...

      Aminu Abdullahi - January 18, 2024 0
      Learn the top AI data analytics software to use. Compare AI data analytics solutions & features to make the best choice for your business.
      Read more
      Latest News

      Zeus Kerravala on Networking: Multicloud, 5G, and...

      James Maguire - December 16, 2022 0
      I spoke with Zeus Kerravala, industry analyst at ZK Research, about the rapid changes in enterprise networking, as tech advances and digital transformation prompt...
      Read more
      Video

      Datadog President Amit Agarwal on Trends in...

      James Maguire - November 11, 2022 0
      I spoke with Amit Agarwal, President of Datadog, about infrastructure observability, from current trends to key challenges to the future of this rapidly growing...
      Read more
      Logo

      eWeek has the latest technology news and analysis, buying guides, and product reviews for IT professionals and technology buyers. The site’s focus is on innovative solutions and covering in-depth technical content. eWeek stays on the cutting edge of technology news and IT trends through interviews and expert analysis. Gain insight from top innovators and thought leaders in the fields of IT, business, enterprise software, startups, and more.

      Facebook
      Linkedin
      RSS
      Twitter
      Youtube

      Advertisers

      Advertise with TechnologyAdvice on eWeek and our other IT-focused platforms.

      Advertise with Us

      Menu

      • About eWeek
      • Subscribe to our Newsletter
      • Latest News

      Our Brands

      • Privacy Policy
      • Terms
      • About
      • Contact
      • Advertise
      • Sitemap
      • California – Do Not Sell My Information

      Property of TechnologyAdvice.
      © 2024 TechnologyAdvice. All Rights Reserved

      Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.

      ×