Gatses
Chevereto Member
Hello.
I just found a bug while Chevereto making a meta tags for a image page.
Problem:
Description keeps in database "as is" (with html tags). And while chevereto formats meta tags it just takes meta tags from DB and puts it into the meta.
You can see XSS attack example there: http://demo.chevereto.com/image/rEe
How to fix it:
Go to /var/www/chevy/app/themes/Peafowl/header.php (It's standart Chevereto theme)
Find this code:
And replace with this one:
It's HIGHTLY CRITICAL BUG, I strongly recommend all users to do it right now.
@Rodolfo Please fix this one asap and sorry for publishing it into public access. I think your users must know about it.
I just found a bug while Chevereto making a meta tags for a image page.
Problem:
Description keeps in database "as is" (with html tags). And while chevereto formats meta tags it just takes meta tags from DB and puts it into the meta.
You can see XSS attack example there: http://demo.chevereto.com/image/rEe
How to fix it:
Go to /var/www/chevy/app/themes/Peafowl/header.php (It's standart Chevereto theme)
Find this code:
PHP:
foreach($open_graph as $k => $v) {
if(!$v) continue;
echo '<meta property="og:'.$k.'" content="'. $v .'">'."\n";
}
And replace with this one:
PHP:
foreach ($open_graph as $k => $v) {
if(!$v) continue;
echo '<meta property="og:'.$k.'" content="' . strip_tags($v) . '">'."\n";
}
@Rodolfo Please fix this one asap and sorry for publishing it into public access. I think your users must know about it.
Last edited: