Blog

MCQs

Disclaimer:

Educational Use Only:

The website links provided are to be used strictly for educational and knowledge-gaining purposes only.

No Misuse:

Do not misuse the links or the information contained therein for any commercial, illegal, or unethical activities.

Respect for Websites and Businesses:

Respect the intellectual property and business interests of the websites and their owners. Do not attempt to alter, copy, or redistribute content without proper authorization.

Acknowledge Value of Knowledge:

Recognize and value the knowledge and resources shared by these websites. Use the information responsibly and ethically.

No Endorsement:

The provision of these links does not imply endorsement of the linked sites, their content, or their products and services. Users are responsible for evaluating the suitability and accuracy of the information.

User Responsibility:

By accessing these links, you agree to use the information at your own risk and to comply with all applicable laws and website terms of use.


  1. What does server-side execution in cybersecurity refer to?
    a. Code executed on the client’s browser
    b. Code executed on the web server
    c. Code executed on the user’s computer
    d. Code executed in the database
    Answer: bexamradar​
  2. Which language commonly supports server-side scripting?
    a. HTML
    b. JavaScript (client mode)
    c. PHP
    d. CSS
    Answer: clenovo​
  3. What is the main goal of server-side validation?
    a. Improve website layout
    b. Ensure data integrity and security
    c. Reduce server costs
    d. Increase page load speed
    Answer: bexamradar​
  4. In server-side template injection (SSTI), what is typically exploited?
    a. HTML templates
    b. Native template syntax
    c. CSS design templates
    d. JavaScript errors
    Answer: bsanfoundry​
  5. Which template engine is NOT usually subject to SSTI?
    a. Twig
    b. Jinja2
    c. Mustache
    d. Freemarker
    Answer: csanfoundry​
  6. What is a key indicator of an SSTI vulnerability?
    a. Page layout inconsistency
    b. Mathematical operations evaluated server-side
    c. HTML rendering issues
    d. Missing JavaScript file
    Answer: bsanfoundry​
  7. What can SSTI potentially lead to if exploited?
    a. Data corruption only
    b. Remote Code Execution
    c. Cross-Site Scripting only
    d. SQL syntax errors
    Answer: bsanfoundry​
  8. What prevents SSTI most effectively?
    a. Using sandbox environments
    b. Using HTTPS
    c. Using inline scripts
    d. Compressing templates
    Answer: asanfoundry​
  9. Which code snippet is vulnerable to SSTI?
    a. $twig->render(“Dear {first_name}”, array(“first_name”=>$user.first_name));
    b. $twig->render(“Dear ” . $_GET[‘name’]);
    c. $twig->escape($user.first_name);
    d. $twig->validate_input($_GET[‘name’]);
    Answer: bsanfoundry​
  10. What term describes attacks injecting scripts in HTML pages for execution on the server?
    a. Cross-Site Scripting
    b. Server-Side Includes Injection (SSI)
    c. SQL Injection
    d. Command Injection
    Answer: bowasp​
  11. What are .shtml files typically related to?
    a. SSI
    b. HTTPS
    c. SQL
    d. DOM scripting
    Answer: aowasp​
  12. What can improper input validation in SSI lead to?
    a. Disk fragmentation
    b. Server access and manipulation
    c. Slower load times
    d. Render errors only
    Answer: bowasp​
  13. When is user input dangerous in template rendering?
    a. When directly passed into templates
    b. When encoded first
    c. When sanitized thoroughly
    d. When escaped properly
    Answer: asanfoundry​
  14. What does RCE stand for?
    a. Remote Control Execution
    b. Remote Code Execution
    c. Random Command Entry
    d. Repeated Command Evaluation
    Answer: bimperva​
  15. What is the effect of RCE on a system?
    a. Slow application
    b. Loss of color formatting
    c. Full system compromise
    d. Better load balancing
    Answer: cimperva​
  16. What causes server-side code execution flaws?
    a. Improper encoding
    b. User input concatenated directly into code
    c. Valid HTML form actions
    d. Slow network latency
    Answer: bsanfoundry​
  17. How are SSTI vulnerabilities detected?
    a. By observing exception messages
    b. By manual code commenting
    c. By checking CSS length
    d. By disabling cookies
    Answer: asanfoundry​
  18. What is a common sandbox bypass method?
    a. Escalating via file upload
    b. Disabling browser cache
    c. Redirecting HTTP traffic
    d. Encoding JSON data
    Answer: asanfoundry​
  19. A server-side vulnerability where templates execute arbitrary code is known as?
    a. Command Injection
    b. SSTI
    c. SQL Injection
    d. CSRF
    Answer: bsanfoundry​
  20. What does {{7*7}} output in a vulnerable environment indicate?
    a. CSS error
    b. SSTI vulnerability
    c. XSS
    d. HTML encoding
    Answer: bsanfoundry​
  21. Server-side includes are processed by:
    a. Web server before supplying HTML
    b. Browser after rendering page
    c. Database during query
    d. Client OS before execution
    Answer: aowasp​
  22. Main reason developers use server-side security over client-side?
    a. It’s faster
    b. It’s not visible to users
    c. It’s more secure and harder to bypass
    d. It loads templates
    Answer: cexamradar​
  23. How can SSTI be avoided during design?
    a. Avoid concatenation of user input in templates
    b. Log all GET parameters
    c. Render template twice
    d. Disable cookies
    Answer: asanfoundry​
  24. Why is proper sandboxing hard to implement?
    a. High CPU usage
    b. Difficult isolation of dangerous functions
    c. Database size limitations
    d. Missing HTML support
    Answer: bsanfoundry​
  25. Which of the following is most dangerous if unsanitized?
    a. GET parameters in template engines
    b. CSS classes
    c. HTML header tags
    d. Network buffering
    Answer: asanfoundry​
  26. The Freemarker syntax ${7*7} indicates what?
    a. Server-side evaluation test
    b. HTML encoding
    c. XSS payload
    d. JSON format
    Answer: asanfoundry​
  27. Who executes server-side templates?
    a. Client browser
    b. Web server
    c. OS-level kernel
    d. CDN server
    Answer: bexamradar​
  28. What kind of operation would indicate active code evaluation?
    a. Mathematical computation on server output
    b. Text display on browser
    c. Broken link rendering
    d. CSS color mismatch
    Answer: asanfoundry​
  29. Which template engine uses double curly braces ({{ }})?
    a. Twig and Jinja2
    b. ASP.NET
    c. Handlebars only
    d. JSP
    Answer: asanfoundry​
  30. What mechanism helps reduce SSTI exposure?
    a. Using logic-less templates
    b. Using nested templates
    c. Inline comments
    d. Template rotation
    Answer: asanfoundry​
  31. What can successful SSTI achieve besides RCE?
    a. Reading arbitrary files
    b. Slowing rendering
    c. Changing font styles
    d. Logging HTTP codes only
    Answer: asanfoundry​
  32. Which file extensions indicate potential SSI use?
    a. .stm, .shtml
    b. .js, .css
    c. .html, .php
    d. .xml, .json
    Answer: aowasp​
  33. What is the most preventive measure against code execution flaws?
    a. Validate and sanitize input
    b. Use multiple HTTP servers
    c. Cache GET requests
    d. Enable cookies
    Answer: aexamradar​
  34. What distinguishes server-side from client-side?
    a. Execution happens on web server
    b. Execution depends on user browser
    c. Execution requires network support
    d. Execution handled in database
    Answer: aexamradar​
  35. Server-side prototype pollution mainly affects?
    a. Node.js and Express
    b. Java Applets
    c. Chrome extensions
    d. Android apps
    Answer: aportswigger​
  36. What is the output if prototype pollution allows command execution?
    a. Arbitrary deletion or file operations
    b. HTTP redirects
    c. Broken CSS
    d. Spinner animation
    Answer: aportswigger​
  37. Remote Code Execution often starts through?
    a. Input handling errors
    b. Network disconnection
    c. Memory caching
    d. Thread priority
    Answer: aimperva​
  38. What risk arises from concatenating untrusted data in templates?
    a. SSTI
    b. SQL tuning
    c. Cache poisoning
    d. Session timeout
    Answer: asanfoundry​
  39. Mustache templates are considered:
    a. Logic-less
    b. Logic-heavy
    c. Dynamic objects
    d. Unstructured
    Answer: asanfoundry​
  40. Which of the following detects SSTI quickly?
    a. Injecting special characters like ${{<%}}
    b. Checking server uptime
    c. Reloading page
    d. Scanning HTML size
    Answer: asanfoundry​
  41. Why is user input concatenation unsafe?
    a. Enables injection of malicious directives
    b. Decreases rendering quality
    c. Affects speed only
    d. Modifies session cookies
    Answer: asanfoundry​
  42. Which server-side measure prevents client-side manipulation?
    a. Input validation on server
    b. CSS encoding
    c. DNS binding
    d. LocalStorage encryption
    Answer: aexamradar​
  43. Which framework uses Jinja2?
    a. Flask
    b. Django
    c. Node.js
    d. Spring Boot
    Answer: asanfoundry​
  44. What typically signals SSTI detection?
    a. Error messages exposing template engine
    b. Timeout error
    c. HTTP 404
    d. Redirection
    Answer: asanfoundry​
  45. Where are server-side controls executed?
    a. On web server
    b. On client device
    c. On router
    d. On browser cache
    Answer: aexamradar​
  46. Principle of defense in depth involves?
    a. Multiple server-side layers
    b. Ignoring inputs
    c. Encrypting CSS
    d. Parallel rendering
    Answer: aexamradar​
  47. Sensitive data should be handled:
    a. On server side
    b. On client browser
    c. In cookies
    d. In local storage
    Answer: aexamradar​
  48. Which of the following is a secure approach to template handling?
    a. Run templates in Docker sandbox
    b. Allow inline code
    c. Disable input filtering
    d. Use open templates
    Answer: asanfoundry​
  49. What can happen if attackers exploit SSI Injection?
    a. Execution of shell commands
    b. Change in layout color
    c. Logout of users
    d. Session timeout
    Answer: aowasp​
  50. Why should developers not rely solely on client-side scripts?
    a. Clients can disable or modify code
    b. Clients execute faster
    c. Servers cannot handle execution
    d. Scripts are non-editable
    Answer: aexamradar​
  1. https://examradar.com/client-side-vs-server-side-security-in-web-security-mcqs/
  2. https://www.lenovo.com/gb/en/glossary/server-side-scripting/
  3. https://www.sanfoundry.com/1000-cyber-security-questions-answers/
  4. https://owasp.org/www-community/attacks/Server-Side_Includes_(SSI)_Injection
  5. https://www.imperva.com/learn/application-security/remote-code-execution/
  6. https://portswigger.net/web-security/prototype-pollution/server-side/lab-remote-code-execution-via-server-side-prototype-pollution
  7. https://automationcommunity.com/100-mcqs-mastery-on-cybersecurity/
  8. https://testbook.com/objective-questions/mcq-on-cyber-security-and-emerging-technologies–5eea6a0d39140f30f369e309
  9. https://www.scribd.com/document/488602565/Cyber-security-notes-MCQ-RCS-1-3
  10. https://portswigger.net/web-security/server-side-template-injection
  11. https://portswigger.net/web-security/learning-paths/server-side-vulnerabilities-apprentice
  12. https://developer.mozilla.org/en-US/docs/Learn_web_development/Extensions/Server-side/First_steps/Website_security
  13. https://www.vinsys.com/blog/top-30-mcqs-ceh-exam-preparation
  14. https://www.imperva.com/learn/application-security/server-side-template-injection-ssti/
  15. https://www.invicti.com/learn/remote-code-execution-rce
  16. https://www.f5.com/glossary/ssrf
  17. https://cwe.mitre.org/data/definitions/602.html
  18. https://www.yeahhub.com/40-cyber-security-mcq-answers-explanations/
  19. https://digital.ai/catalyst-blog/client-side-vs-server-side-security/
  20. https://www.ourcreativeinfo.in/cyber-security-mcq/

Leave a Reply

Your email address will not be published. Required fields are marked *

error: Content is protected !!