Pass the ECCouncil Application Security 312-96 Questions and answers with CertsForce

Viewing page 2 out of 2 pages
Viewing questions 11-20 out of questions
Questions # 11:

A US-based ecommerce company has developed their website www.ec-sell.com to sell their products online. The website has a feature that allows their customer to search products based on the price. Recently, a bug bounty has discovered a security flaw in the Search page of the website, where he could see all products from the database table when he altered the website URL http://www.ec-sell.com/products.jsp?val=100 to http://www.ec-sell.com/products.jsp?val=200 OR '1'='1 -. The product.jsp page is vulnerable to

Options:

A.

Session Hijacking attack


B.

Cross Site Request Forgery attack


C.

SQL Injection attack


D.

Brute force attack


Expert Solution
Questions # 12:

Alice, a security engineer, was performing security testing on the application. He found that users can view the website structure and file names. As per the standard security practices, this can pose a serious security risk as attackers can access hidden script files in your directory. Which of the following will mitigate the above security risk?

Options:

A.

< int-param > < param-name>directory-listinqs < param-value>true < /init-param >


B.

< int param > < param-name>directorv-listinqs < param-value>false < /init-param >


C.

< int-param > < param-name>listinqs < param-value>true < /init-param


D.

< int-param > < param-name>listinqs < param-value>false < /init-param >


Expert Solution
Questions # 13:

Suppose there is a productList.jsp page, which displays the list of products from the database for the requested product category. The product category comes as a request parameter value. Which of the following line of code will you use to strictly validate request parameter value before processing it for execution?

Options:

A.

public boolean validateUserName() {String CategoryId= request.getParameter("CatId");}


B.

public boolean validateUserName() { Pattern p = Pattern.compile("[a-zA-Z0-9]*$"); Matcher m = p.matcher(request.getParameter(CatId")); boolean result = m.matches(); return result;}


C.

public boolean validateUserName() { if(request.getParameter("CatId")!=null ) String CategoryId=request.getParameter("CatId");}


D.

public.boolean validateUserName() { if(!request.getParamcter("CatId").equals("null"))}


Expert Solution
Questions # 14:

Alice, a Server Administrator (Tomcat), wants to ensure that Tomcat can be shut down only by the user who owns the Tomcat process. Select the appropriate setting of the CATALINA_HOME/conf in server.xml that will enable him to do so.

Options:

A.

< server port="" shutdown-"' >


B.

< server port="-1" shutdown-*" >


C.

< server port="-1" shutdown="SHUTDOWN" >


D.

< server port="8080" shutdown="SHUTDOWN" >


Expert Solution
Viewing page 2 out of 2 pages
Viewing questions 11-20 out of questions