Question 56
Which HTTP request method is idempotent and requests representation of a specified resource?
GET requests are idempotent and should only retrieve data without changing server state.
Which HTTP request method is idempotent and requests representation of a specified resource?
GET requests are idempotent and should only retrieve data without changing server state.
Which HTTP header field informs the server about the client browser and operating system?
The User-Agent request header contains a characteristic string that lets network peers identify the application, OS, and vendor.
What type of vulnerability occurs when malicious scripts are injected into trusted websites visited by users?
Cross-Site Scripting (XSS) attacks occur when an attacker uses a web application to send malicious code, generally browser scripts, to an end user.
What type of security attack tricks an authenticated user into executing unwanted actions on a web application?
CSRF tricks an authenticated user's web browser into executing an unwanted action on a trusted site.
Which HTTP cookie flag prevents client-side scripts (like JavaScript) from accessing the cookie?
The HttpOnly flag directs browsers not to expose cookies through DOM document.cookie to mitigate XSS attacks.