Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-66hf-2p6w-jqfw

Опубликовано: 08 дек. 2021
Источник: github
Github: Прошло ревью
CVSS3: 6.1

Описание

Laravel Framework XSS in Blade templating engine

A security researcher has disclosed a possible XSS vulnerability in the Blade templating engine.

Given the following two Blade templates:

resources/views/parent.blade.php:

@section('content') <input value="{{ $value }}"> @show

resources/views/child.blade.php:

@extends('parent') @section('content') <input value="{{ $value }}"> @endsection

And a route like the following:

Route::get('/example', function() { $value = '//localhost/###parent-placeholder-040f06fd774092478d450774f5ba30c5da78acc8## onclick=location.assign(this.value);//'; return view('child', ['value' => $value]); });

The broken HTML element may be clicked and the user is taken to another location in their browser due to XSS. This is due to the user being able to guess the parent placeholder SHA-1 hash by trying common names of sections. If the parent template contains an exploitable HTML structure an XSS vulnerability can be exposed.

This vulnerability has been patched by determining the parent placeholder at runtime and using a random hash that is unique to each request.

Пакеты

Наименование

laravel/framework

composer
Затронутые версииВерсия исправления

< 6.20.42

6.20.42

Наименование

laravel/framework

composer
Затронутые версииВерсия исправления

>= 7.0.0, < 7.30.6

7.30.6

Наименование

laravel/framework

composer
Затронутые версииВерсия исправления

>= 8.0.0, < 8.75.0

8.75.0

Наименование

illuminate/view

composer
Затронутые версииВерсия исправления

< 6.20.42

6.20.42

Наименование

illuminate/view

composer
Затронутые версииВерсия исправления

>= 7.0.0, < 7.30.6

7.30.6

Наименование

illuminate/view

composer
Затронутые версииВерсия исправления

>= 8.0.0, < 8.75.0

8.75.0

EPSS

Процентиль: 58%
0.00359
Низкий

6.1 Medium

CVSS3

Дефекты

CWE-327
CWE-79

Связанные уязвимости

CVSS3: 5.3
ubuntu
около 4 лет назад

Laravel is a web application framework. Laravel prior to versions 8.75.0, 7.30.6, and 6.20.42 contain a possible cross-site scripting (XSS) vulnerability in the Blade templating engine. A broken HTML element may be clicked and the user taken to another location in their browser due to XSS. This is due to the user being able to guess the parent placeholder SHA-1 hash by trying common names of sections. If the parent template contains an exploitable HTML structure an XSS vulnerability can be exposed. This vulnerability has been patched in versions 8.75.0, 7.30.6, and 6.20.42 by determining the parent placeholder at runtime and using a random hash that is unique to each request.

CVSS3: 5.3
nvd
около 4 лет назад

Laravel is a web application framework. Laravel prior to versions 8.75.0, 7.30.6, and 6.20.42 contain a possible cross-site scripting (XSS) vulnerability in the Blade templating engine. A broken HTML element may be clicked and the user taken to another location in their browser due to XSS. This is due to the user being able to guess the parent placeholder SHA-1 hash by trying common names of sections. If the parent template contains an exploitable HTML structure an XSS vulnerability can be exposed. This vulnerability has been patched in versions 8.75.0, 7.30.6, and 6.20.42 by determining the parent placeholder at runtime and using a random hash that is unique to each request.

CVSS3: 5.3
debian
около 4 лет назад

Laravel is a web application framework. Laravel prior to versions 8.75 ...

EPSS

Процентиль: 58%
0.00359
Низкий

6.1 Medium

CVSS3

Дефекты

CWE-327
CWE-79