blind xss & femida - zeronights...femida who is femida ? burp suite plugin that:! flexible and...

21
BLIND XSS & FEMIDA Pavel Rukavishnikov hd

Upload: others

Post on 27-Jun-2020

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

BLIND XSS & FEMIDA

Pavel Rukavishnikov

hd

Page 2: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

whoami

Pavel Rukavishnikov

• Ctf player

• programmer

Github: https://github.com/wish-i-was

Twitter: https://twitter.com/wish_iwas

HD

• Script kiddie

• Bounty hunter

• pentester

Github: https://github.com/HD421

Twitter: https://twitter.com/hd_421

Page 3: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

Agenda

•What is blind xss?

• How to deal with it

•Where to inject

• Callback handlers

• How to improve and automate

• TODO

Page 4: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

Few facts about blind xss?

• Almost always it’s stored• You can’t see alert(1337)

• need your patience

• facing it the other way

Page 5: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

Where to inject

Headers:

• User-Agent

• Referer

• Origin

• X-Forwarded-For

Request parameters:

• imagination

Page 6: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

Ground control

your target is to receive a knock-knock from

Application used by administrator/team member

payload

payload

payload

payload

payload

payload

payload

payload

paylo

ad

pa

ylo

ad

Page 7: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

Few more

payload

payload

payload

Page 8: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

CSP report

How It look sometimes

• Almost always request is static (except custom csp

reporting frameworks like

sentry csp)

• Processing servers are oftenly poorly protected

Page 9: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

Should I look for it?

Page 10: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

Callback handlers

Page 11: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

Callback handlers

Page 12: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

Callback handlers

Callback tokenSSRF

XXE

XXS

https://github.com/jobertabma/ground-control

Page 13: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

Callback handlers

https://github.com/ssl/ezXSS

Page 14: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

Callback handlers

https://xsshunter.com

Page 15: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

Callback handlers

Launch your own Collaborator Server:

https://blog.fabiopires.pt/running-your-instance-of-burp-collaborator-server/

Page 16: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

What can be simplified?

Daily routine looks like:

1. intercept the request

2. Put payload in correct header/parameter

3. Send request

4.Repeat n-times b/c you never know what will

be logged at backend

Page 17: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

Should we perform manual check all the

time?

Automated

Manual

Page 18: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

FEMIDA

Who is femida?

Burp Suite plugin that:

• Flexible and easy

configurable

• Performs accurate

passive checks

• Active scan

Page 19: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

FEMIDA

PLUGIN DEMO HERE

Page 20: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

TODO

• CSP report detector and request

generator

•WAF detector

• Etc…

Page 21: BLIND XSS & FEMIDA - ZeroNights...FEMIDA Who is femida ? Burp Suite plugin that:! Flexible and easy configurable! Performs accurate passive checks! Active scan FEMIDA PLUGIN DEMO HERE

We wish you Happy hacking

Thank you for attention

Fell free to ask your questions:

Twitter:

• https://twitter.com/hd_421

• https://twitter.com/wish_iwas

Plugin: https://github.com/wish-i-was/femida