GoConqr has a new look! Let us know what you think.

Quiz

Analyse 9 week 4

Joost Stam 20 questions

Take the quiz

Questions in this quiz (20)

  1. 1Cross-site Scripting may be used to hijack cookie-based sessions.
    1. ATrue
    2. BFalse
  2. 2An attacker used scripts to change information on a page as it is displayed to the bank clerk for manual inspection. This attack can be successful because of _______________.
    1. Avulnerability in the bank database
    2. Binappropriate output handling in web application
    3. Cnot escaping shell meta-characters
    4. Dcareless manual inspection by clerk
  3. 3Suppose a web application allows the attacker to inject the attached script into the HTML sending to the user's browser, and the script is allowed to be executed by the browser.
    What is correct about the web application?

    <script>
    for (q = 0; q < 10000; q++)
    window.open("http://www.google.com");
    </script>
    1. AWeb application is not properly handling the output.
    2. BWeb application is not properly hiding the HTML.
    3. CWeb application is not properly handling the shell command.
    4. DWeb application is not properly handling the input.
  4. 4To avoid Shell Command Injection, prefixing the metacharacters with a backslash is an approach to escape them in the data string.
    1. ATrue
    2. BFalse
  5. 5For HTML Cross-site Scripting, the most appropriate time to deal with data passing problem is whenever our application _______________ .
    1. Agenerates some input
    2. Bgenerates some output
    3. Cpasses data to the database
    4. Dsends HTTP requests
  6. 6What is the first step in simplest possible session hijacking using Cross-site Scripting?
    1. AAttacker injects script on the server and waits for a victim.
    2. BServer passes a session cookie and the attacker’s script to a visitor.
    3. CScript runs in the victim’s browser, and passes the session cookie to the attacker
    4. DAttacker passes the stolen cookie, making the server think he is the victim.
  7. 7Cross-site Scripting is a _______________.
    1. Anetwork layer problem
    2. Binput validation problem
    3. Cshell problem
    4. Dmetacharacter problem
  8. 8What is the attached image?

    HTTP/1.1 200 OK
    Date: Sun, 07 Dec 2003 21:16:12 GMT
    Server: Apache/1.3.27 (Unix) PHP/4.3.2
    Last-Modified: Wed, 20 Aug 2003 20:31:11 GMT
    Content-Length: 84
    Connection: close
    Content-Type: text/html

    <html>
    <head><title>Test</title></head>
    <body>
    <p>Hello, world!</p>
    </body>
    </html>
    1. AHTTP Request
    2. BHTTP Response
    3. CAttacker's Script for Session Hijacking
    4. DNone of the above answers
  9. 9"The attacker needs the unique session ID cookie of the victim to impersonate him/her."
    What is the described attack?
    1. APacket Sniffing
    2. BSQL Injection
    3. CDenial-of-Service
    4. DSession Hijacking
  10. 10A good reason for not filtering HTML at input time, as a countermeasure against XSS attacks is because ________________.
    1. Adata from other external source should not be HTML encoded.
    2. Bany non-HTML part of the application that uses the same database will have to remove the HTML encoding.
    3. CHTML encoding does not expand data strings.
    4. DAll the above reasons are correct.

Information

Description
Learning Technology Quiz on Analyse 9 week 4, created by Joost Stam on 07/04/2019.
Language
English
Views
28
Rating
No ratings yet
Rate this quiz
Rate this quiz

Feedback

What is it about?

What do you think of the new look?

How do you like it?