Securing Web Apps Flashcards
(60 cards)
What are the three components of a web transaction?
Server computer, client computer, network.
What is the goal of web app testing?
Gather information, including by attacking the app.
What should be attacked in web app testing?
HTML comments, sensitive info, error messages, HTTP responses.
Why are HTML comments a security risk?
May reveal insights about code to attackers.
How should comments be secured?
Place in server-side code like PHP, not HTML.
What sensitive info might HTML source reveal?
Database names, user logins, passwords.
What tools map web app pages?
Web crawlers like wget or BlackWidow.
Why manually map web app pages?
More efficient for apps with fewer than thousands of pages.
How to start manual web app testing?
Click every link from the start page, document all pages.
What to check in the homepage source?
Comments for clues about app structure.
Why are misplaced server-side comments risky?
May end up in HTML due to errors, like ColdFusion’s 3-dash comments.
What is a ColdFusion comment issue?
Uses 3 dashes instead of 2, easily mistaken by programmers.
What can old code in comments reveal?
Sensitive app details to attackers.
What tool searches for string patterns?
grep, available on *NIX, Cygwin, or MinGW.
What is The Regulator?
A tool for creating regular-expression searches.
What info might database error pages reveal?
Table names, database names, or code snippets.
What happens in ColdFusion/Java Servlet crashes?
Server may reveal function traces or code snippets.
How to defend against error message leaks?
Log errors, don’t display queries or code.
Why disable PHP error messages?
Prevents exposing sensitive app details.
What are the three user access mechanisms?
Authentication, session management, access control.
What is the weakest link in user access?
A single defect can compromise the entire app.
What is authentication?
Verifying a user’s identity.
What is conventional authentication?
Username and password.
What enhances authentication security?
Securekey, multistage login, client certificates, smartcards.