XSS (Cross-site Scripting) Attack is a Vulnerability that is occurs due to Failure of Input Parameters of the user and as well as the Server response of the Web Application.XSS Attack allows a attacker to insert his Malicious HTML code in the Target Website.
In the Previous Tutorials on XSS we have Learn Some Basics of XSS Attack and the usage of XSS With SQL injection.
Now let's Come to the next part of Bypassing the XSS WAF Filters by using Different Techniques.
In normal cases While we are trying to exploiting XSS Vulnerability we can easily break into the Security Because of Zero Web Application Firewall Protection on the Target site.
But in Strong WAF's it is very Difficult To bypass the security and then attacker came to the Conclusion to Bypass the XSS WAF Filters.
Bypassing Modern XSS WAF Filters:
Let's Start from the Bypassing basic XSS PAYLOAD that we mostly used on daily routine.
Here is the XSS Payload:
<scirpt>alert("XSS")</script>
When we execute this Payload ,if there is Normal WAF on the Target site then we will be easily able to Exploit the XSS ATTACK but if there are some Modern WAF Filters then we have to Bypass that WAF Filters.Some WAF Filters automatically escapes some Characters from our XSS Payload like " ' "(Single Quote) ," " " (Double Qoute) or " / " (back-Slashes) .Here are some Methods for Bypassing these XSS Characters .
Bypassing XSS WAF by using ASCII Value:
In this Method we will bypass the XSS WAF by using ASCII Characters in our Target site .
Let's Say this is our XSS Payload .
<scirpt>alert("XSS")</script>
When we execute this Payload the XSS WAF Filters will Escaped some of our Characters like Single or Double Magic Quotes and our Payload doesn't work anymore.To bypass the Magic Quotes we will convert our Payload into ASCII Characters and then execute it.We can use Hackbar for Converting our XSS Payloads into ASCII Characters.Our ASCII Converted Value is work with in Javascript Funtion,when we will execute our ASCII Value The Javascript will Convert it into that Characters that we have encoded.
For Example:
XSS Payload:alert("XSS")
ASCII Converted Value:
String.fromCharCode(97, 108, 101, 114, 116, 40, 34, 88, 83, 83, 34, 41)
Now we will add this Converted String into our XSS Payload:
<scirpt>String.fromCharCode(97, 108, 101, 114, 116, 40, 34, 88, 83, 83, 34, 41)</script>
This will Bypass Characters of our String which were blocked by the WAF Filters and our Script will bypassed successfully in the Target Site.
Bypassing XSS WAF by using Hex Encoding:
In this Method we will convert our whole XSS Payload into Hex Value and then run it in the Target Site.This will execute our XSS Payload without getting it Blocked by the WAF.
Here is our XSS Payload:
<scirpt>alert("XSS")</script>
Encoded Value:%3c%73%63%69%72%70%74%3e%61%6c%65%72%74%28%22%58%53%53%22%29%3c%2f%73%63%72%69%70%74%3e
So we will use this Encoded Value in the Target site .
Bypassing XSS WAF by OBFUSCATING:
In this method we are going to use Upper case and lower Case Keywords in our XSS Payload for Bypassing the XSS WAF Filters.In some Cases the admin have Blocked some Plane words like Alert or Script And when we will Execute our XSS Payload the WAF Filters will automatically Escaped them and our Payload Doesn't Work.
So in that case we have to Use Upper and Lower Case Letters instead of Plane Letters for Bypassing the XSS WAF Filters.
Here is Our XSS Payload:<scirpt>alert("XSS")</script>
Bypassed XSS Payload:<sCiRPt>aLeRT("XSS")</sCriPT>
This XSS Payload will Bypass the XSS WAF Filter and we can easily able to run our Script.
These are some Basic XSS WAF Bypassing Techniques That will help in XSS Attack.
Bypassing XSS WAF Mod_Security:
Some times when we execute our XSS Payload but there we Got a Error like.
"Not Acceptable! An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security"
So we have to Bypass the Mod_Security WAF on the Target Site.
Our XSS Payload:
<scirpt>alert("XSS")</script>
Here is the Bypass of our XSS PAYLOAD:
<scirpt>alert("XSS")</scri0pt>
Bypassing XSS WAF Dot Defender:
Dot Defender is another Web Application Firewall (WAF) which restricted our Malicious Codes from reaching to the Target Sites.When we try to run our XSS query in the Dot Defender WAF Protected website it gives a Error .
"dotDefender Blocked Your Request"
So in that case our Script Wont work there .We Need to bypass the Dot Defender WAF for making our malicious Scripts run in the web application.So here is the Bypassed XSS Payload for Dot Defender WAF.
Dot Defender WAF Bypassed XSS Payload: <svg/onload=prompt(1);>
AUTHOR:Rai Muzammal Hussain
tks u :D
ReplyDeleteAll About #XSS :D (Y) Advance Method (New)
ReplyDeletehttp://www.ideamindmu.com/2016/02/advanced-cross-site-scripting-xss-cheat.html
body{xss:expression(alert(“Xss-By-Muhaddi”))}
ReplyDeletexss:expression(alert(/Xss-By-Muhaddi/)
ReplyDeleteare you sure this is advance :V :P
DeleteSuperb. I really enjoyed very much with this article here. Really it is an amazing article I had ever read. I hope it will help a lot for all. Thank you so much for this amazing posts and please keep update like this excellent article.thank you for sharing such a great blog with us. expecting for your.
ReplyDeleteDigital Marketing Company in India
seo Company in India
These ways are very simple and very much useful, as a beginner level these helped me a lot thanks fore sharing these kinds of useful and knowledgeable information.
ReplyDeleteTexting API
Text message marketing
Digital Mobile Marketing
Mobile Marketing Services
Mobile marketing companies
Fitness SMS
This comment has been removed by the author.
ReplyDeleteThanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts
ReplyDeleteangularjs-Training in velachery
angularjs Training in bangalore
angularjs Training in bangalore
angularjs Training in btm
angularjs Training in electronic-city
It's interesting that many of the bloggers to helped clarify a few things for me as well as giving.Most of ideas can be nice content.The people to give them a good shake to get your point and across the command
ReplyDeleteBest Devops Training in pune
excel advanced excel training in bangalore
This is very good content you share on this blog. it's very informative and provide me future related information.
ReplyDeleteangularjs Training in chennai
angularjs Training in chennai
angularjs-Training in tambaram
angularjs-Training in sholinganallur
angularjs-Training in velachery
angularjs-Training in pune
thanks for giving that type of information. ielts coaching in gurgaon
ReplyDeleteThanks Admin for sharing such a useful post, I hope it’s useful to many individuals for developing their skill to get good career.
ReplyDeleteBest Devops Training in pune
Devops interview questions and answers
It seems you are so busy in last month. The detail you shared about your work and it is really impressive that's why i am waiting for your post because i get the new ideas over here and you really write so well.
ReplyDeletepython course in pune
python course in chennai
python Training in Bangalore
ReplyDeleteGreat Article… I love to read your articles because your writing style is too good,
its is very very helpful for all of us and I never get bored while reading your article because,
they are becomes a more and more interesting from the starting lines until the end.
Java training in Chennai
Java training in Bangalore
Java online training
Java training in Pune
I’m planning to start my blog soon, but I’m a little lost on everything. Would you suggest starting with a free platform like Word Press or go for a paid option? There are so many choices out there that I’m completely confused. Any suggestions? Thanks a lot.
ReplyDeleteAWS Training in Bangalore electronic city| AWS Training in Bangalore Cost
AWS Training in Pune with placements | AWS Training in Pune
AWS Training Course in Chennai |Best AWS Training in Chennai tnagar
Best AWS Amazon Web Services Training in Chennai | Best AWS Training centers in Chennai
AWS Online Training in india | AWS online training cost
Hi, Great.. Tutorial is just awesome..It is really helpful for a newbie like me.. I am a regular follower of your blog. Really very informative post you shared here. Kindly keep blogging.
ReplyDeleteData Science Training in Indira nagar
Data Science Training in btm layout
Data Science Training in Kalyan nagar
Data Science training in Indira nagar
Data science training in bangalore
I was recommended this web site by means of my cousin.
ReplyDeleteI am now not certain whether this post is written through him as nobody else recognise such precise about my difficulty. You're amazing! Thank you!
selenium training in Chennai
selenium training in Tambaram
selenium training in Velachery
selenium training in Omr
selenium training in Annanagar
Thanks For Sharing The Information The information Shared Is Very valuable Please keep updating us Time Just Went On reading The article Python Online Course AWS Online Course Devops Online Course DataScience Online Course
ReplyDeleteReally it was an awesome article about JAVA, very interesting to read.You have provided an nice article,Thanks for sharing.
ReplyDeleteJava training in chennai | Java training in annanagar | Java training in omr | Java training in porur | Java training in tambaram | Java training in velachery
This article is very interesting in your blog.
ReplyDeletePython Training in Chennai | Certification | Online Training Course | Python Training in Bangalore | Certification | Online Training Course | Python Training in Hyderabad | Certification | Online Training Course | Python Training in Coimbatore | Certification | Online Training Course | Python Training in Online | Python Certification Training Course
This post is so interactive and informative.keep update more information...
ReplyDeleteData Science course in Tambaram
Data Science course in Chennai
Smm Panel
ReplyDeleteSmm Panel
iş ilanları
instagram takipçi satın al
Hirdavatci burada
beyazesyateknikservisi.com.tr
servis
tiktok hile
nft nasıl alınır
ReplyDeleteen son çıkan perde modelleri
özel ambulans
en son çıkan perde modelleri
yurtdışı kargo
lisans satın al
uc satın al
minecraft premium