Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
CodeIgniter 4
CodeIgniter 4 Support
How do I stop Stored XSS
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
How do I stop Stored XSS
chakycool
Member
Posts:
70
Threads:
20
Joined:
Apr 2018
Reputation:
0
#1
12-15-2021, 03:24 AM
Hi All,
If you enter "<script>alert('xss');</script>" in to your form and save, this script get triggered on the page load.
What is the best way to stop these Stored XSS scripts globally?
Thanks.
Reply
chakycool
Member
Posts:
70
Threads:
20
Joined:
Apr 2018
Reputation:
0
#2
12-15-2021, 10:27 PM
I'm looking for a global option where I don't have to worry about printing any stored data.
Reply
seunex
Codeigniter Rocker
Posts:
124
Threads:
29
Joined:
Jun 2019
Reputation:
2
#3
12-15-2021, 11:39 PM
You can you entity to cast the data from the database.
Reply
InsiteFX
Super Moderator
Posts:
6,514
Threads:
324
Joined:
Oct 2014
Reputation:
239
#4
12-16-2021, 01:28 AM
Use html purifier.
What did you Try?
What did you Get?
W
hat did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Reply
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB