How to comply with the new PCI DSS 3.1 requirements for Web Applications 
Stage 4: Deliver
Marsel Nizamutdinov
29th July 2015
Share this:

 

Major security flaws discovered in SSL, including BEAST and POODLE have accelerated the introduction of PCI DSS 3.1.

The Payment Card Industry Data Security Standard (PCI DSS) 3.0 was replaced on 1 July 2015. While firms have till 30 June 2016 to comply with v3.1, they should no longer implement any new systems with SSL or early versions of TLS.

Compliance is mandatory for any business accepting card payments and rightly so. Vulnerable websites and insecure web applications have become one of the easiest ways to compromise networks of small, medium and large companies – a fact supported by the guidance to PCI DSS Requirement 6.6, which deals with the security of websites and web applications.

It states that “Public-facing web applications are primary targets for attackers, and poorly coded web applications provide an easy path for attackers to gain access to sensitive data and systems”.

Unfortunately, achieving compliance is probably one of the most significant challenges faced by today’s e-commerce businesses.

The PCI DSS 3.1 standard (requirement 6.6) states that public-facing web applications need to “address new threats and vulnerabilities on an ongoing basis and ensure these applications are protected against known attacks.”

What is important here is the “on an ongoing basis” condition, which makes it very clear that payment security is can only be achieved through continuous web security. Compliance can no longer be a one off annual exercise, especially as e-commerce websites are constantly evolving. New features and functionality whether developed in-house or adopted via third-party code can potentially expose websites to new vulnerabilities.

PCI DSS proposes two ways to address new threats and vulnerabilities:

  • “Reviewing public-facing web applications via manual or automated application vulnerability security assessment tools or methods, at least annually and after any changes.”
  • “Installing an automated technical solution that detects and prevents web-based attacks (for example, a web-application firewall) in front of public-facing web applications, to continually check all traffic.”

 

Manual vs automatic – conducting web application security testing

PCI proposes manual and automated approaches to assessing web application security. Both methodologies have their strengths and weaknesses.  Consequently, by merging these two approaches, as does ImmuniWeb, a new method combining both automated vulnerability scanning and manual penetration testing, e-commerce businesses can achieve the highest level of application security possible.

While the PCI explicitly requires the assessment of the following vulnerabilities, many of them cannot be reliably detected with automated vulnerability scanning alone, and require manual testing by security experts:

  • Injection flaws, particularly SQL injection
  • OS Command Injection, LDAP and XPath injection flaws, as well as other injection flaws
  • Buffer overflows
  • Insecure cryptographic storage
  • Insecure [communications] channels
  • Improper error handling
  • Cross-Site Scripting (XSS)
  • Cross-Site Request Forgery (CSRF)
  • Broken authentication and session management
  • Improper access control (insecure direct object references, failure to restrict URL access).

The need for human skills has been verified by a major analysis conducted by the universities of KU Leuven (Belgium) and Stony Brook (New York). The researchers tested websites “protected” with various trust seals provided by security vendors delivering automated vulnerability and malware scanning services. The research showed “that seal providers perform very poorly when it comes to the detection of vulnerabilities on the websites that they certify.” This is a weakness inherent in almost all fully-automated solutions – they can only go so far before their output needs to be analysed by a qualified penetration tester.

While an automated scanning tool may be in place, an appropriate penetration testing provider may be harder to select. PCI DSS says that web application penetration testing should be conducted by “an organization that specializes in application security”. Here is how they define such an organization:

“An organization can be either a third-party company or an internal organization, as long as the reviewers specialize in application security and can demonstrate independence from the development team.”

Probably the most important point here is independence. This is why hiring vendor and product independent penetration testing companies is critical. They will not be focused on reselling, integrating, or installing preferred partner IT security solutions, thereby creating a potential conflict of interest during any audit.

Ideally, true penetration testing starts from where a vulnerability scan finishes. A penetration tester will take the reports from several different scans and use his personal skills and experience to quickly remove false-positives, and most importantly to detect missed vulnerabilities. In particular, he is likely to recognise weaknesses in application business logic, which scanners cannot efficiently detect, and see how otherwise minor technical flaws can be chained together to effect a major breach. An example of such flaw is Alibaba’s website, where a tiny authentication bypass bug exposed the most sensitive information of millions of users. Another example is similar vulnerability in Delta airlines website, where URL manipulation permitted access to anyone’s boarding pass.

 

Web Application Firewalls cannot be used in isolation

A Web Application Firewall (WAF) is another approach proposed by PCI to maintain web application security. In our experience, a Web Application Firewall is a must-have solution, but it should never be used in isolation from other security solutions.

Web applications change constantly, and updating existing WAF rulesets, or adding new ones, following the changes, makes WAF management a time-consuming process, quite often leading to false-negatives (your WAF will stop blocking some of the attacks) or false-positives (your WAF will block legitimate users).

Theoretically, for a static web application or web application with dynamic yet simple architecture, an ideal, false-positive and false-negative free, configuration may exist. However, it will never consistently block some of the attacks against your web application, such as CSRF or application logic manipulation, authentication bypass or complex XSS inside of JS code, to name just a few.

In reality, even the most efficient WAFs, mentioned in Gartner’s latest Magic Quadrant are usually installed in a very “silent” mode so as not to block legitimate traffic with false-positive alarms. The worst situation for online businesses is when a legitimate customer is blocked by a WAF at the payment stage.

This is the main reason why the majority of businesses block only the most frequent and obvious attack patterns in their web traffic, which still leaves hackers with plenty of opportunities to by-pass the WAF. Therefore, a WAF should be always complemented by the above-mentioned web security scanning and web application penetration testing.

 

Conclusion

In order to comply with PCI DSS 3.1 Requirement 6.6 and keep your corporate web applications secure, it’s worth keeping in mind that automated technologies, such as Web Application Firewalls or Vulnerability Scanning solutions, ideally should be complemented by manual security testing. You can either do it internally if you have qualified experts, or outsource to a web penetration testing company.

  • Was this Helpful ?
  • Yes   No
Author: Marsel Nizamutdinov
Marsel Nizamutdinov joined High-Tech Bridge in 2011 to lead its ImmuniWeb platform and his team are responsible for ImmuniWeb Security Scanner development and support. Marsel also wrote one of the first books about web application security, published at the beginning of 2005.

Leave a comment

Now read...
A quick guide to hosting social media contests that won’t lose under the new rules
Take my word for it: If you use endorsements in your marketing, now’s a good time to review your playbook.Why? Recently, the Federal Trade Commission (FTC) updated the Q&A on its Endorsement...
Featured eBooks
Copyright eSeller Publishing Limited © 2014
Connect with us
eSeller Media is the UK's leading channel for learning about selling in the digital age
eSeller partners