Web Application Security and AppScan
Covers web application security vulnerabilities, testing with AppScan, and security best practices including XSS, SQL injection, authentication, and vulnerability scanning techniques.
Questions
After the appscan finished testing your web application you found that your password was changed to 1234. What do you think happened?
- Reset password functionality was invoked during the testing
- Change password form was submitted by appscan
- Somebody changed your password while the scan was running
- This is a result of an SQL injection test by appscan
After a test appscan reports the occurrence of lot of hidden files which you know for sure your application does not contain. What do you think happened?
- Somebody put those files there during the test
- Appscan created those files
- Third party domain was not excluded from the scan
- It’s a result of cross site scripting attack
Which among the below do you think appscan will NOT report as “Predictable login credentials?
- Admin/admin1
- John/nAscar
- John/n@sc1234r
- John/nascar2
The occurrence of which among the below in the http response will appscan report as possible server path disclosure vulnerability?
- ../../help/images/about.jpeg
- <!-- /help/images/about.jpeg -->
- d:/etc/host/pwd
- document.title(“/admin/administration”);
It’s advisable to run appscan in the preproduction environment. What do you think are the reasons? Select 2 answers
- Don’t have to inform the application owner
- To prevent production database corruption
- To prevent user functionality disruption
- To reduce network traffic
Before running a test its advisable to do the following. Select 3 answers
- Inform the user population about the test
- Inform the QA and system administers about the test
- Backup the database
- Shut down the configured SMPT servers
What’s the effect of malicious file execution on the server?
- User account compromised
- Steal user sessions
- Site defacement and complete take over of the application
- Complete user account compromise
What is the best approach to secure a web application?
- Use https
- Use encryption
- Black box testing
- Secure coding
Which among the below indicate application error?
- 400 return code
- 500 return code
- 302 return code
- 200 return code
Which among the below is an example of information leakage vulnerability?
- Displaying “Welcome, “+request.getParameter(“userid”)
- Displaying “You entered either a wrong user id or password” error message
- Call stack trace
- Return error code 404
During testing you observed that after few minutes of initiating the scan appscan locks itself out of the application. How will you resolve the problem?
- Configure appscan not to test login/logout pages
- Increase the thread count
- Decrease the timeout
- Increase the timeout
While analyzing your application you observed that a part of your application is accessed using the domain name whereas the login url is defined as http://10.1.52.3/apps/login.asp. How will you configure appscan to test this application?
- Add the domain name in the “Additional servers and domains” section in the scan configuration
- Add 10.1.52.3 in the “Additional servers and domains” section in the scan configuration
- Put the domain name in the login url
- Change the application code to reflect the domain name every where
Which type of vulnerability can occur when a developer exposes a reference to an internal implementation object, such as a file, directory, database record, or key, as a URL or form parameter?
- Cross-site Scripting
- Insecure Direct Object Reference
- Injection Flaw
- Cross Site Request Forgery
After 30 minutes your scan stops with an out-of-session error. What is a possible cause of this error?
- Redundant path limit was too low
- A parameter was not tracked
- Flash parsing was turned off
- Platform authentication was not configured
AppScan sent the following test HTTP request: GET /web/content/index.php?file=/../../../../../../../../etc/passwd%00 HTTP/1.0 Cookie: JSESSIONID=dqt0LSnfhdVyTJkCwTwfLQQSkTTGYX9D79tLLpT1yLQjVhSpZKP9!914376523; customerLanguage=en Accept: / Accept-Language: en-US User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Win32) Host: www.ibm.com Although, there is no indication in the response about the existence of a password file, AppScan reported vulnerability with the following reasoning: Global Validation found an embedded script in the response (), which was probably injected by a previous test. The presence of this script in the site suggests that the application is vulnerable to which type of attack?
- Stored Cross-site Scripting
- Cross-site Scripting
- Namazu Path Traversal
- Directory Listing
In which areas does AppScan test for vulnerabilities?
- the network layer, the web application, the webserver
- the operating system, the web application platform, the database
- the web application, the web server, the web application platform
- the web application platform, the network layer, the web server
After 30 minutes your scan stops with an out-of-session error. What could be the cause of error?
- Redundant path limit was too low
- A parameter was not tracked
- Flash parsing was turned off
- Platform authentication was not configured
How does an attacker exploit web application vulnerabilities?
- By hacking the firewall
- By installing viruses on the users machine
- By sending malicious HTTP requests
- By sniffing the traffic between a user and the web server
Which type of vulnerability allows an attacker to browse files that shouldnt be accessible (eg. *.bak,"Copy of", *.inc, etc) or pages restricted for users with higher previleges?
- Insecure cryptographic storage
- Injection Flaw
- Failure to restrict URL access
- Insecure communication
Why is it important to encrypt the HTTP traffic for an authenticated connection between a client and a web server?
- to prevent SQL injection
- to prevent sensitive information from being stolen
- to prevent cross site scripting
- to prevent Web site defacement