How To Fix Cross Site Scripting Persistent In Java | Copperchips

Posted By : Copperchips on 2022-03-16   12:57:47    India
  site persisitaent scripting java scripting copperchips software development company copperchips blog java blog java language software and web development company custom software development


Before we jump to cross-site scripting or XSS it is vital to understand a core security feature called Same Origin Policy (SOP) so that we are on the same page. SOP is a policy that stops one website from reading or writing data. The policy essentially checks for three different things in the origin- Protocol, Host, Port. If all the three are the same for two different origins then the browser allows cross-origin read or write. This is a great feature ensuring some basic web security.

But what if we had control over the Javascript of another website? We know that Javascript has access to HTML documents that are provided by the browser. This means one can manipulate the DOM and deface the webpage. Hence, having access to Javascript on another website in a different user’s context can be very problematic. But now the question is can we inject some Javascript into another website? Yes, we can and that’s exactly what Cross-Site Scripting or XSS does. 

What is Cross-Site Scripting?

Cross-Site Scripting is nothing but a Javascript injection technique. In this, attackers aim to carry out any actions that the user can perform and also, access the user’s data. If by any chance, the victim possesses premium access, then attackers might be able to control the application’s functionality and data. 

There are two types of Cross-Site Scripting attacks namely- 

  • Nonpersistent or Reflected XSS. 
  • Persistent or Stored XSS.

About Author

Copperchips Noida India
Software And Web Development Company

Related Stories

Why Does Car Jerks Wh

2022-07-02 Services

You feel very disappointed when you press your brake to stop your car but the car jerks when braking at low speed. ...

Read More

Fridge Repair Ottawa

2022-07-02 Business

🎖️Call For Affordable Fridge Repair Ottawa Service. Ask about our FREE Same Day Refrigerator Repair Services. ...

Read More

Custom Lip gloss Boxe

2022-07-02 Business

Custom Lip gloss Boxes-Make Your Cosmetics Presentable ...

Read More
You Need Login to Comment !