SOFTWARE SECURITY
CH 6 InfoSec Handbook
Now More Technical Stuff …
Software Security: Overview
Common Issues … (just a few!)
Countermeasures
Web Browsers, Servers + Apps
Web Applications
Vulnerabilities in Web Browsers
Vulnerabilities in Web Servers
• Default Users/Permissions not changed
• Sample files / scripts not removed
• Default Configurations not changed
• Directory permissions (defaults & just bad set ups)
• What’s a patch?
Other Typical Attacks on web servers & sites �
SQL Injection Attacks
SELECT * FROM Products where Description == “Water Filters’
SELECT ACCTID FROM CUSTOMERS where email=‘jsmith@gmail.com’ AND password == ‘rover’;
SQL Injection Attacks
Used to:
SQL Injection & Web Apps
Web Form to Database
CMD execution attacks
Normal Program Operations
Stack Buffer Overflow
Buffer Overflow Attacks
Cross Site Scripting (XSS)
XSS
<!DOCTYPE html>
<html>
<head>
<script>
function myFunction() {
document.getElementById("demo").innerHTML = "Paragraph changed.";
}
</script>
</head>
<body>
<h1>JavaScript in Head</h1>
<p id="demo">A Paragraph.</p>
<button type="button" onclick="myFunction()">Try it</button>
</body>
</html>
XSS
XSS: An overview
Default Browser Settings for cookies and scripts …
Cookies
Cookies and Javascript
https://www.microsoft.com/security/assets/images/_security/sir/strategy/cross-site-scripting-stored-xss-attack.png
How can we prevent these?
Authentication + Encryption
How do we achieve this?
Pro Tip: We dig deep into these in a few weeks, so best prepare! >:)