Follow

cross site scripting (xss)

cross site scripting is injection technique to use inject malicious script in trusted website. cross site scripting injection perform on input area of the website, when sql injection successful it mean website is vulnerable. attackes purpose use of xss is gain access to cookies, session tokens, as well as other confidential details in the browser.

three types of cross site scripting (xss)

  • stored xss
  • input script save in server is called stored xss. stored xss known as persistent and type 1.
  • reflected xss
  • when error show, input script or somthing. reflected xss known as non-persistent and type 2.
  • dom-based xss
  • dom based xss or type 0


Question


What is cross-site scripting?

Cross-site scripting (XSS) is a security vulnerability that allows an attacker to inject malicious code into a web page viewed by other users.

What is the primary goal of an XSS attack?

The primary goal of an XSS attack is to steal sensitive information, such as login credentials or personal data, from the users of the affected web page.

How can XSS attacks be prevented?

XSS attacks can be prevented by properly validating and sanitizing user input, using a Content Security Policy (CSP), and escaping user input when it is displayed on a web page.

What is a Content Security Policy (CSP)?

A Content Security Policy (CSP) is a security feature that helps prevent cross-site scripting (XSS) and other code injection attacks by giving web developers control over the sources of content that a browser will load for a web page.

What is DOM-based XSS?

DOM-based XSS is a type of cross-site scripting attack that occurs when user input is not properly sanitized in the Document Object Model (DOM), rather than the server-side code.

No comments:

Post a Comment

Tell us how you like it.