Anti-XSS library from Microsoft to mitigate XSS attacks

Anti-XSS library from Microsoft to mitigate XSS attacks

I am new to a large project and plan to use the Anti-XSS library from Microsoft to mitigate XSS attacks. This is a very large MVC C# application, and it has been determined this library from MS will be low-impact, yet close many exposures.

Any suggestions on how to approach this integration?

Thanks
newbiewebSr. Software EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jackie ManIT ManagerCommented:
Anti-XSS library from Microsoft is End of Life (EOL) already. Why do you think that it will be no impact to use Anti-XSS library?
0
newbiewebSr. Software EngineerAuthor Commented:
Wow!

End of Life sounds like it may be a bad choice then. Have they already stopped supporting it? I saw that version 4.3 was released years ago, so it already seemed either bug-free ;) or no longer of interest for them to update.

What options are there?

Is this a good alternative?

https://www.owasp.org/index.php/.NET_AntiXSS_Library
0
btanExec ConsultantCommented:
AntiXSS though EOL, its source and installers will remain online allow people using earlier versions of .NET to enable an alternative, whitelist based encoded but no further enhancements, outside of security fixes, will be made. https://archive.codeplex.com/?p=wpl
No software is bugless, but if you still want to try out, it is still possible. https://www.codeproject.com/Articles/644736/Anti-Cross-Site-Scripting-Library-AntiXSS
That said, its last vulnerability known is https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2012/ms12-007
The challenge is just that if you upgrade to latest .NET framework then likely the Anti XSS will break otherwise still worth try out.

Nonetheless, one alternative is HTMLSanitizer that cleans HTML fragments and documents from constructs that can lead to XSS attacks and there is a demo site
https://github.com/mganss/HtmlSanitizer
http://xss.ganss.org/
https://dotnetfiddle.net/qqpiDh
1

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
newbiewebSr. Software EngineerAuthor Commented:
thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.