Security Fix or Workaround

22
Security fix or workaround: which way to select? Bohdan Serednytskyi, OWASP Lviv

Transcript of Security Fix or Workaround

Page 1: Security Fix or Workaround

Security fix or workaround: which way to select?

Bohdan Serednytskyi, OWASP Lviv

Page 2: Security Fix or Workaround

•OWASP Lviv Chapter•Security Consulting Team at SoftServe

We are…

Page 3: Security Fix or Workaround

Communication with client

Project Execution

Delivering Results

Consulting Dev Team in issues fixing

Usual Project Flow

Page 4: Security Fix or Workaround

Tools will solve all our problems

Clients Vision

Page 5: Security Fix or Workaround

https://www.outpost24.com/wp-content/uploads/2014/12/Picture1-1024x610.jpg

Automated Tools Effectiveness

Page 6: Security Fix or Workaround

• All application security tool vendors’ claims put together cover only 45% of the known vulnerability types (over 600 in CWE).• They also found very little overlap

between tools, so to get 45% you need them all (assuming their claims are true)

MITRE Claims

Page 7: Security Fix or Workaround

Case with One Educational Application

Page 8: Security Fix or Workaround

Risk VulnerabilityCritical CROSS-SITE REQUEST FORGERY (CSRF)

CROSS-SITE SCRIPTING (STORED)High SESSION TOKEN DOES NOT CHANGE AFTER LOGINMedium    

USERLOGINID ENUMERATIONWEAK PASSWORD REQUIREMENTS

NO LOGOUT FUNCTION IMPLEMENTED

ACCOUNT ENUMERATION

IMPROPER ACCESS CONTROLSTUDENT CAN REVEAL TEACHERS LOGIN FROM SERVER RESPONSE

Low ERROR MESSAGES REVEAL SENSITIVE INFORMATION

INTERNAL IP ADDRESS DISCLOSURE

INSUFFICIENT PASSWORD HISTORY MANAGEMENT

Remediation Status

PARTIALLY FIXEDNEED IMPROVEMENTFIXEDFIXEDFIXED

FIXED

FIXED

FIXED

NOT FIXED

FIXED

FIXED

FIXED

Security Test Results

Page 9: Security Fix or Workaround

XSS Vulnerability Fixing

‘});alert(1)”

Initial payload

Protection implemented by Developers Team\‘});alert(1)”

\‘});alert(1)”

Modified payload\\‘});alert(1)”

Page 10: Security Fix or Workaround

CSRF and Information Leakage Fixing

Page 11: Security Fix or Workaround

Best Practices

Page 12: Security Fix or Workaround

Every security flaw is a process problem

Page 13: Security Fix or Workaround

Security vulnerabilities are “patterned”.

Page 14: Security Fix or Workaround

Security issue could be widespread amongst all code bases.

Page 15: Security Fix or Workaround

Ensure that root cause analysis is used

Remove as many vulnerabilities of this type as is possible within the prescribed time frame or budget

Involve Security Expert

Recommendations

Page 16: Security Fix or Workaround

Use Fast Fix Methods - WAFs

A security solution on the web application level which does not depend on the application itself

Page 17: Security Fix or Workaround

Security Expert is not a Developer

Page 18: Security Fix or Workaround

•OWASP Secure Coding Practices•OWASP Guide Project•OWASP Enterprise Security API•Microsoft Web Protection Library

Resources

Page 19: Security Fix or Workaround

Security is a Journey

Not a Destination

Page 20: Security Fix or Workaround

• Patching• Updating• Continuous Security

Monitoring• Regular Security Tests

Page 21: Security Fix or Workaround

Questions?

Page 22: Security Fix or Workaround

Thank You!

http://owasp-lviv.blogspot.com/