Answered: [Security threat] tags are not sanitized in extra question field

Post date: 2020-07-01 00:44:51
Views: 328

Hey q2apro, I think you are testing the default q_view_extra($q_view); function.

The default function is still safe. But if you pull the content from the databse, it's not safe.

First, look! The script is stored in database.

database

Second, if create a function to pull that content form the datase:

public function q_item_extra($q_item)
{
$postidz = $q_item'raw']'postid'];
$extra = qa_db_read_one_value(qa_db_query_sub(
       'SELECT content FROM ^postmetas WHERE title="qa_q_extra" AND postid=#',
        $postidz
   ), true);
 
 //$extra = $q_item'extra']'content'];
 
        $this->output('My info:'.$extra);   
   
}

Here's the result:

test

I hope you'll get my point.

Please click Here to read the full story.
 
Other Top and Latest Questions:
Blackstone, Brookfield and KKR sign $16 billion deal with Kuwait for oil pipeline network
Tell me of your cold noodle recipes
How a 70-year-old beekeeper is keeping his family honey farm afloat: 'It's a legacy that I feel responsible for'
Here are 4 forces that drove a tough week for stocks
Does crypto make your portfolio less risky? Only if you do it right, experts say
From Silicon Valley to DC, the tech world is suddenly obsessed with one concept in AI: Distillation
Meta likely to highlight smart glasses, avoid social media policy on upcoming earnings call, Kalshi traders say
BofA thinks ASML isn’t under threat from China, and that investors are overreacting
Ford Motor is set to report earnings after the bell. Here's what Wall Street expects
Boeing posts wider loss than expected as Air Force One costs weigh on results