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

exploitDog

github логотип

GHSA-9fgx-q25h-jxrg

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

Описание

DOM XSS in Theme Preview

Impact

An unused endpoint added during the development of 4.0.0 has left sites vulnerable to untrusted users gaining access to Ghost Admin. Attackers can gain access by getting logged in users to click a link containing malicious code. Users do not need to enter credentials and may not know they've visited a malicious site.

Ghost(Pro) has already been patched. We can find no evidence that the issue was exploited on Ghost(Pro) prior to the patch being added.

Self-hosters are impacted if running Ghost a version between 4.0.0 and 4.3.2. Immediate action should be taken to secure your site - see patches & workarounds below.

Patches

Fixed in 4.3.3, all 4.x sites should upgrade as soon as possible. As the endpoint is unused, the patch simply removes it.

Workarounds

  • Log out of Ghost Admin
  • Suspend any users who cannot log out
  • Block access to /ghost/preview

Example of how to block access in nginx:

location ~ /ghost/preview { rewrite ^(\/(.*\/)?ghost\/)(.*)$ $1 redirect; }

This redirects the endpoint to /ghost/, which mimics the behaviour after the patch is applied.

References

For more information

If you have any questions or comments about this advisory:


Credits: Paul Gerste, SonarSource (https://www.sonarsource.com/)

Пакеты

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

ghost

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

>= 4.0.0, < 4.3.3

4.3.3

EPSS

Процентиль: 99%
0.82004
Высокий

6.8 Medium

CVSS3

Дефекты

CWE-79

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

CVSS3: 6.8
nvd
почти 5 лет назад

Ghost is a Node.js CMS. An unused endpoint added during the development of 4.0.0 has left sites vulnerable to untrusted users gaining access to Ghost Admin. Attackers can gain access by getting logged in users to click a link containing malicious code. Users do not need to enter credentials and may not know they've visited a malicious site. Ghost(Pro) has already been patched. We can find no evidence that the issue was exploited on Ghost(Pro) prior to the patch being added. Self-hosters are impacted if running Ghost a version between 4.0.0 and 4.3.2. Immediate action should be taken to secure your site. The issue has been fixed in 4.3.3, all 4.x sites should upgrade as soon as possible. As the endpoint is unused, the patch simply removes it. As a workaround blocking access to /ghost/preview can also mitigate the issue.

CVSS3: 6.8
debian
почти 5 лет назад

Ghost is a Node.js CMS. An unused endpoint added during the developmen ...

EPSS

Процентиль: 99%
0.82004
Высокий

6.8 Medium

CVSS3

Дефекты

CWE-79