Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7187429
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T18:50:34+00:00 2026-05-28T18:50:34+00:00

How can I secure my CakePHP 1.3 site against XSS. Currently I am using

  • 0

How can I secure my CakePHP 1.3 site against XSS. Currently I am using $this->Form->create to make the form and I’ve also tried adding Security to the Components array without any success. Supposed I load the following javascript code into my comments box, that code goes thru all the way to the database and if I approve that comment, it will show a button where comment is supposed to be returned. And if I click on it, an alert box will popup with XSS Alert?

<form>
    <input type="button" onclick="alert('XSS Alert?')" value="Confirmation Alert">
</form>

How Can I secure my CakePHP site and prevent things like there from happening.

Thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T18:50:35+00:00Added an answer on May 28, 2026 at 6:50 pm

    CakePHP will not protect you against that.

    The Security component is there to make sure your form was not tampered with.

    You will need to use php built-in functions like htmlentities() or CakePHP Sanitize class.

    You can either do it in a beforeSave, beforeValidate callbacks or at the view-level if you want to keep the original data.

    http://book.cakephp.org/1.3/en/view/1185/html

    http://ca.php.net/manual/en/function.htmlentities.php

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I secure jetty to only allow connections from localhost? This means a
Using CakePHP 1.3 we have a booking system for hotel rooms. A check-availability form
Currently I'm using the Java mail library at http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_(no_Intents)_in_Android to accomplish this; however I
I can't set secure websocket connection using websocket-server and node.js server side var options
I can create a secure, multi-tenant web app with Grails by : setup spring
How can I secure an webservice so my clients can use it on their
Can someone recommend a secure FTP implementation that works well on Windows Server 2000?
I'm trying to secure an application so that users can only see objects which
Is there a secure Python intepreter? Imagine a Python VM you can run on
I am developing an application using cakePHP v 1.3 on windows (XAMPP). Most of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.