Skip to main content

XSS vulnerability

Cross-site scripting (XSS) is a type of computer security vulnerability typically found in web applications which enable malicious attackers to inject client-side script into web pages viewed by other users. An exploited cross-site scripting vulnerability can be used by attackers to bypass access controls such as the same origin policy.

One common way to solve is:

Ensure that parameters and user input are sanitized by doing the following:
# Remove < input and replace with <
# Remove > input and replace with >
# Remove ' input and replace with '
# Remove " input and replace with "
# Remove ) input and replace with )
# Remove ( input and replace with (

Popular posts from this blog

Watch Live cam on Google!!!!!

Ahhh!!! type certain string in google search bar above and it would bring up the network live cam into your browser. These can be anything from CCTV or webcams... There are lots of string.. i suggest a few down below use them to begin with.. And do come up with your own.. and leave a comment to the post... And ya.. if u come up with something interesting then don forget to share it.. Strings::: Axis cameras: "adding live video to one of your own pages a very easy task with an AXIS 2100 Network Camera" ' google ' intile:"Live view - / - AXIS" ' google ' "Your browser has JavaScript turned off.For the user interface to work effectively" ' google ' inurl:indexFrame.html axis ' google ' "Live web imaging unleashed" ' google ' MOBOTIX cameras: (intext:"MOBOTIX M1" | intext:"MOBOTIX M10") intext:"Open Menu" Shift-Reload ' google ' JVC cameras: "(c)copyright 199...

How to set Tomcat 7 source level to Java 7? Avoid "Resource specification not allowed here for source level below 1.7" error

I have been facing problem where whenever I was accessing jsp page which were using some Java 7 specific features, the compilation of such JSP pages use to fail with following error: Resource specification not allowed here for source level below 1.7 To fix this I googled for hours and set up the JDK home correctly on my catalina.sh with env.sh to point to jdk7. But this never solved my problem. Finally today I hit the gold while reading the apache tomcat jasper  documentation . The JSP compiler had to be set to use 1.7 as target and source version. To do this we need to add two extra init-params in the conf/web.xml file in the tomcat home.  The JSP servlet configuration should have      <servlet>         <servlet-name>jsp</servlet-name>         <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class>         <init-param>     ...

Did Snapchat CEO's comment on India being a poor country?

I would like to get the facts straight over here before we get more offended reading the headlines of all the major Indian bulletins. Lets breakdown this incident: This is an allegation. There are no evidence yet to prove this yet. The allegation is made by an employee of Snapchat, Anthony Pompliano, who is currently engaged in lawsuit against Snapchat, accusing the company of misleading the investors by providing inflated statistics about user data. Snapchat unredacted lawsuit by gmaddaus on Scribd According to the allegation, the statement was told in answer to a private company meeting, discussing the further expansion plan. India was ranked 126th in the world richest country. Total countries are 189. The ranking was created by adjusting GDP per capita to relative purchasing power.  Snapchat is a business. It earns money from advertising. The digital advertisement market of India is close to   Rs 7000 crore  . Which roughly comes to $ 1 billion whi...