Security vulnerabilities: should you worry about...

26
Security vulnerabilities: should you worry about them ? Luciano Sampaio - [email protected] Alessandro Garcia – [email protected] OPUS Research Group

Transcript of Security vulnerabilities: should you worry about...

Page 1: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Security vulnerabilities: should you worry about them?

Luciano Sampaio - [email protected] Garcia – [email protected]

OPUS Research Group

Page 2: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

Agenda1. Background; 2.Motivation; 3.Research Questions; 4.Hypotheses; 5.Empirical Method and Evaluation; 6.Results; 7.Limitations; 8.Conclusions; 9.Questions?

���2

Page 3: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

BackgroundWhat is a good software?

Easy to use (Usability); Fast (Efficiency); Easy to update (Maintainability);

!

Issues of usability, efficiency and others are easy to spot. !

What about Security?���3

Page 4: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

MotivationEverything is going online; !

Applications are going global; Reputation is really important;

!

The later you find a problem, the more expensive it will be to fix it.

���4

Page 5: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

Research QuestionsRQ1 - Who should check for security vulnerabilities? !

RQ2 - What is the importance given by developers to security vulnerabilities? !

RQ3 - Does the programming language influence the concern for security vulnerabilities?

���5

Page 6: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

HypothesesH1 - Developers should be the ones to check for security vulnerabilities; !

H2 - Developers don’t care about security vulnerabilities; !

H3 - Developers don’t know about security vulnerabilities; !

H4 - Java developers care more about security than PHP developers;

���6

Page 7: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

Empirical Method and Evaluation

Exploratory Study; Experiment;

We asked the participants to review a source code and report any security vulnerabilities; Requirement: Knowledge of Java + HTML; 07 participated on the experiment;

Average of 25 minutes; 2 performed ok, 5 didn’t…

!Questionnaire;

12 questions on Google Forms; 45 answered the questionnaire;

���7

Page 8: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

Experiment - Source Code

���8

Exploratory Study >>

Denial of Service

XSS (Cross-Site Scripting)

SQL Injection

Cookie Poisoning

Informations LeakageSecurity Misconfiguration

Page 9: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

Experiment - Sign in

���9

Exploratory Study >>

Page 10: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

Experiment - Comment

���10

Exploratory Study >>

Page 11: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

Questionnaire

���11

Exploratory Study >>

Page 12: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

Who should worry?

���12

Results >>

RQ1 - H1

Page 13: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio ���13

Is it important?Results >>

RQ2 - H2

Page 14: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

How often?

���14

Results >>

RQ2 - H2

Page 15: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

Have you heard?

���15

Results >>

RQ2 - H3

Page 16: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

What programming languages?

���16

Results >>

RQ3 - H4

Page 17: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

What do you do?

���17

Results >>

RQ3 - H4

Page 18: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

% per PL

���18

Results >>

RQ3 - H4

Page 19: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

Should students learn it?

���19

Results >>

Page 20: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

On what point in time?

���20

Results >>

Page 21: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

Have you?

���21

Results >>

Page 22: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

What they said…The order of prioritization:

To protect my database; The easiest first; Easier to exploit; !

What is necessary to remove them: Prepared Statements; Frameworks and libraries, e.g Hibernate, ASP.NET 4.5; Remove “,” and “\” and etc from input;

���22

Results >>

Page 23: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

LimitationsNumber of participants; !

Late understanding of more in-depth problems; !

Almost everybody chooses one of the options, just a few choose “Other:”;

���23

Page 24: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

ConclusionsDevelopers without training CANNOT find and fix security vulnerabilities; !

Developer don’t need to be security experts; Are you a Tester and Database expert?

!

It is necessary to raise the bar of security; !

Too many people doing nothing…���24

Page 25: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Luciano Sampaio

Questions?

���25

Page 26: Security vulnerabilities: should you worry about them?inf2921/2013_2/docs/works/final/Work_Luciano.… · Security vulnerabilities: should you worry about them? Luciano Sampaio -

Thank you!Luciano Sampaio - [email protected] Garcia – [email protected]

OPUS Research Group