Headline
CVE-2020-36665: open redirect vulnerability fixes (#201) · artesaos/seotools@ca27cd0
A vulnerability was found in Artesãos SEOTools up to 0.17.1 and classified as critical. This issue affects the function eachValue of the file TwitterCards.php. The manipulation of the argument value leads to open redirect. Upgrading to version 0.17.2 is able to address this issue. The name of the patch is ca27cd0edf917e0bc805227013859b8b5a1f01fb. It is recommended to upgrade the affected component. The identifier VDB-222233 was assigned to this vulnerability.
Permalink
Browse files
open redirect vulnerability fixes (#201)
* open redirect vulnerability fix for opengraph
* open redirect vulnerability fix for twitter cards
* open redirect vulnerability fix for setTitle
* fixed preg replace
* Update OpenGraph.php
* Update TwitterCards.php
- Loading branch information
jnbn committed
Apr 2, 2020
1 parent 445c0bf commit ca27cd0
Showing 3 changed files with 5 additions and 0 deletions.
- OpenGraph.php
- SEOMeta.php
- TwitterCards.php
@@ -258,6 +258,7 @@ protected function eachProperties(
*/
protected function makeTag($key = null, $value = null, $ogPrefix = false)
{
$value = str_replace(['http-equiv=’, ‘url=’], '’, $value);
return sprintf(
'<meta property="%s%s" content="%s" />%s’,
$ogPrefix ? $this->og_prefix : '’,
@@ -213,6 +213,9 @@ public function generate($minify = false)
*/
public function setTitle($title, $appendDefault = true)
{
// open redirect vulnerability fix
$title = str_replace(['http-equiv=’, ‘url=’], '’, $title);
// clean title
$title = strip_tags($title);
@@ -83,6 +83,7 @@ protected function eachValue(array $values, $prefix = null)
*/
private function makeTag($key, $value)
{
$value = str_replace(['http-equiv=’, ‘url=’], '’, $value);
return '<meta name="’.$this->prefix.strip_tags($key).’" content="’.strip_tags($value).’" />’;
}
0 comments on commit ca27cd0
Please sign in to comment.