Skip to content

Latest commit

 

History

History
32 lines (16 loc) · 1.7 KB

web_development.md

File metadata and controls

32 lines (16 loc) · 1.7 KB

Interview Questions for Web developer

This chapter will help you to get answers on typical interview questions for Web developers.

Questions list

What are HTTP and TCP

What is XSS?

XSS (Cross-site scripting) is a type of computer security vulnerability. XSS enables attackers to inject client-side script into Web pages viewed by other users. A cross-site scripting vulnerability may be used by attackers to bypass access controls such as the same origin policy.

Example #1: user send form with search query with <script> tag in it, and this page shows entered by user query without escaping it. In result we have injected JavaScript from external website. Attacher can share link to search results via email or own website.

Example 2: attacher can enter <script> tag in some field of personal profile on social network website. Whe user visiting page with attacker profile - JavaScript executes and can collect your personal information and send it to attacher email or website.

Example 3 (DOM-based XSS): when user visit website with SPA (single-page application) the JavaScript can render content without escaping data that comes from user input - and it can result in the same problem as described above.

How's the web works?