GithubHelp home page GithubHelp logo

Comments (5)

inrussiawithhate avatar inrussiawithhate commented on May 28, 2024

controllers/Thread.php

line 220 find: "post" => str_replace("'", "'", $_POST['post']),

replace with

"post" => str_replace("'", "'", htmlspecialchars($_POST['post'])),

line 354 find:

"poll_allow_multiple" => (isset($_POST['poll_allow_multiple'])) ? 1 : 0
);

replace with

"poll_allow_multiple" => (isset(htmlspecialchars($_POST['poll_allow_multiple']))) ? 1 : 0
);

line 364 find:

"post" => str_replace("'", "'", $_POST['post']),

replace with:

"post" => str_replace("'", "'", htmlspecialshars($_POST['post'])),

line 419 find:

"post" => $_REQUEST['post'],

replace with:

"post" => htmlspecialchars($_REQUEST['post']),

from addictive-community.

arcestia avatar arcestia commented on May 28, 2024

Fatal error: Cannot use isset() on the result of a function call (you can use "null !== func()" instead) in /home/arcestia/public_html/controllers/Thread.php on line 354
@inrussiawithhate

from addictive-community.

inrussiawithhate avatar inrussiawithhate commented on May 28, 2024

My error. It back as it was again tested whether there are XSS?

find:
"poll_allow_multiple" => (isset(htmlspecialchars($_POST['poll_allow_multiple']))) ? 1 : 0
);

replace with:

"poll_allow_multiple" => (isset($_POST['poll_allow_multiple'])) ? 1 : 0
);

from addictive-community.

arcestia avatar arcestia commented on May 28, 2024

@brunnopleffken need to update in next version

from addictive-community.

brunnopleffken avatar brunnopleffken commented on May 28, 2024

Thanks for reporting! There’s no need to re-encode the information using PHP, as the built-in WYSIWYG editor already does that (in DB, you'll already see encoded information). So, we just need to sanitize the view, not the back-end.

The achieved result:

screen shot 2016-04-06 at 12 36 51

from addictive-community.

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.