XSS Cross Site Scripting prevention on input forms

  • Judy Akers
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
12 years 2 months ago #40523 by Judy Akers
My agency tests all input forms on our web sites for XSS and tries to prevent it as much as possible.

They would like to prevent cross site scripting on the text input fields for the registration forms (for at least the basic fields of Name, Address, City, State, and Comments). We are willing to modify the necessary module(s) so whenever < and/or > are entered in the fields, they are replaced with &lt; and &gt;, respectively.

Could you please supply me with the locations of the files that handle the input to add this code for this ability? We are willing to send you a finished copy for your own records or upgrade in the future.

Thank you.

Please Log in or Create an account to join the conversation.

More
12 years 2 months ago #40532 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: XSS Cross Site Scripting prevention on input forms
Hi Judy

The files are located under components/com_eventbooking/views/register/tmpl

and components/com_eventbooking/views/confirmation/tmpl folder

Hope this give you alitle help !

Tuan

Please Log in or Create an account to join the conversation.

  • Judy Akers
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
11 years 8 months ago #47637 by Judy Akers
Update: During testing the new version 1.6.6 - it is stripping out any script from the input fields. So this is no longer a problem. It does leave any html tags and our security unit seems to be OK with that.

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #47670 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: XSS Cross Site Scripting prevention on input forms
OK Judy. Thanks for confirming (and sharing the information). We use Joomla core API for filtering input data, so I believe it should work well.

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc