Giter Club home page Giter Club logo

Comments (6)

lesterchan avatar lesterchan commented on June 6, 2024

I replied to this on my email before.

I will not consider that an actual XSS.

That is by design.

Only admin have access to add poll and they can add any HTML inside the poll fields.

Just like you can have alert(1) within the WP post text field as well.

You can check out the code here https://github.com/lesterchan/wp-polls/blob/master/wp-polls.php#L1802-L1805 that assigns manage_polls to admin only

from wp-polls.

 avatar commented on June 6, 2024

Hi,

Don't admit your mistake. sanitize, filtering can be applied. If you have a situation like that, that is caused by the theme developer. The end user can never be trusted.
Unreasonable to put HTML into the fields except the description field.

https://codex.wordpress.org/Validating_Sanitizing_and_Escaping_User_Data

from wp-polls.

lesterchan avatar lesterchan commented on June 6, 2024

I have users who requires HTML in the polls question and answers fields and hence the inclusion of HTML,

Of course I can use kses to filter it out, probably can take a look at it when I am free. But having said that, it is XSS if you consider putting alert(1) inside the textarea of the post as XSS.

from wp-polls.

lesterchan avatar lesterchan commented on June 6, 2024

I have fixed it and wrap it with wp_kses_post(). You can try the dev version which is 2.71.

from wp-polls.

espellcaste avatar espellcaste commented on June 6, 2024

@lesterchan Your point is that if someone, a hacker maybe, can add something on the backend, then the person hacked has bigger problems, right?!

I got your point.

from wp-polls.

 avatar commented on June 6, 2024

@lesterchan thanks.

from wp-polls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.