Web Application Security
Shahed Chowdhuri
Sr. Technical Evangelist @ Microsoft
@shahedC
WakeUpAndCode.com
in the Real World
Agenda
 Overview
 SQL Injection
 Cross-Site Scripting (XSS)
 Data Exposure
 Next Steps
 Q&A
Overview of Web Applications
Database
Web
Server
Internet
Users
SQL Injection
Enter your username and password…
Username
Password
Submit
myusername
' or 1=1)#
… but what if you can inject SQL code in the input field?
SQL Injection Demo codebashing.com/sql_demo
SQL Injection in the Real World
Link 1
Link 2
Link 3
Link 4
Solutions for SQL Injection
Use framework-specific features
Cross-Site Scripting (XSS)
Enter some text and submit it…
Enter text:
Text Submitted:
Submit
Hello World!
Hello World!
… but what if you could submit script code?
XSS Demo google.com/about/appsecurity/learning/xss/#BasicExample
Cross-Site Scripting in the Real World
Link 1
Link 2
Link 3
Solutions for XSS
Use framework-specific features
Data Exposure
Perform an action that causes an error…
Enter item:
Text Submitted:
Submit
Error: servername.dbname in code file, line 21
New Item?!!
… unnecessary information is displayed!
Solutions for Data Exposure
Provide an error code for troubleshooting
Next Steps: OWASP Top 10
OWASP Top 10
HP WebInpsect & Fortify Tools
http://hp.com/go/fortify
Gartner Magic Quadrant for AST
http://www.gartner.com/doc/reprints?id=1-2KU6OUB&ct=150806&st=sb
Does this describe you?
 Passionate about technology!
 Tech-savvy!
 Thrilled to learn new skills!
 Actively involved with student orgs!
You could be the Microsoft rock star on campus!
To apply for the Microsoft Student Partners program:
 Go to: http://aka.ms/mspapply2016
As an MSP, you will:
 build apps and demos
 demonstrate the newest technologies and host tech events
on your campus
 acquire the tools and training to lead technology
discussions on your campus
 build your global network with industry experts
 connect with like-minded students and faculty around the
world
 attend trainings from Microsoft leaders to enhance your
knowledge about cutting edge technologies
 be the one on your campus with insight and answers on
Microsoft technologies
Contact: SHAHED CHOWDHURI, Sr. Technical Evangelist @ Microsoft
shchowd@microsoft.com • http://WakeUpAndCode.com/msp
Email: shchowd@microsoft.com  Twitter: @shahedC

Web App Security

  • 1.
    Web Application Security ShahedChowdhuri Sr. Technical Evangelist @ Microsoft @shahedC WakeUpAndCode.com in the Real World
  • 2.
    Agenda  Overview  SQLInjection  Cross-Site Scripting (XSS)  Data Exposure  Next Steps  Q&A
  • 3.
    Overview of WebApplications Database Web Server Internet Users
  • 4.
    SQL Injection Enter yourusername and password… Username Password Submit myusername ' or 1=1)# … but what if you can inject SQL code in the input field?
  • 5.
    SQL Injection Democodebashing.com/sql_demo
  • 6.
    SQL Injection inthe Real World Link 1 Link 2 Link 3 Link 4
  • 7.
    Solutions for SQLInjection Use framework-specific features
  • 8.
    Cross-Site Scripting (XSS) Entersome text and submit it… Enter text: Text Submitted: Submit Hello World! Hello World! … but what if you could submit script code?
  • 9.
  • 10.
    Cross-Site Scripting inthe Real World Link 1 Link 2 Link 3
  • 11.
    Solutions for XSS Useframework-specific features
  • 12.
    Data Exposure Perform anaction that causes an error… Enter item: Text Submitted: Submit Error: servername.dbname in code file, line 21 New Item?!! … unnecessary information is displayed!
  • 13.
    Solutions for DataExposure Provide an error code for troubleshooting
  • 14.
    Next Steps: OWASPTop 10 OWASP Top 10
  • 15.
    HP WebInpsect &Fortify Tools http://hp.com/go/fortify
  • 16.
    Gartner Magic Quadrantfor AST http://www.gartner.com/doc/reprints?id=1-2KU6OUB&ct=150806&st=sb
  • 18.
    Does this describeyou?  Passionate about technology!  Tech-savvy!  Thrilled to learn new skills!  Actively involved with student orgs! You could be the Microsoft rock star on campus! To apply for the Microsoft Student Partners program:  Go to: http://aka.ms/mspapply2016 As an MSP, you will:  build apps and demos  demonstrate the newest technologies and host tech events on your campus  acquire the tools and training to lead technology discussions on your campus  build your global network with industry experts  connect with like-minded students and faculty around the world  attend trainings from Microsoft leaders to enhance your knowledge about cutting edge technologies  be the one on your campus with insight and answers on Microsoft technologies Contact: SHAHED CHOWDHURI, Sr. Technical Evangelist @ Microsoft shchowd@microsoft.com • http://WakeUpAndCode.com/msp
  • 19.

Editor's Notes

  • #3 Shahed Chowdhuri Web Application Security Overview SQL Injection Cross-Site Scripting (XSS) Data Exposure In the Real World Next Steps Q&A
  • #20 Contact Microsoft email: shchowd@microsoft.com Personal Twitter: @shahedC Dev Blog: WakeUpAndCode.com