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

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

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:
Tesla recalls 3 million vehicles in China over doorhandle safety, driver monitoring
How one Silicon Valley firm is seizing an opportunity from Premier League soccer's gambling ad clampdown
Big week coming up with PCE, Nvidia earnings and then Jackson Hole. Here's what to expect
An overlooked AI winner names a new CFO — plus, Nvidia's key earnings loom
Answered: The content and articles of my q2a site are being pulled by fake sites. Can you help me to solve this problem?
Book: Purgatorio: Canto 30
Movie: Meda or The Not So Bright Side of Things
Star Trek: Strange New Worlds: Level-Five Transporter Accident
Stargate SG-1: Sentinel Rewatch
Movie: The Selfish Giant