Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2023-28115— Snappy vulnerable to PHAR deserialization, allowing remote code execution

Quick assessment

Affected
KnpLabs snappy
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Snappy是KNP Labs个人开发者的一个 PHP 库,允许从 url 或 html 页面生成缩略图、快照或 PDF。 Snappy 1.4.2之前版本存在代码问题漏洞,该漏洞源于缺乏对协议的检查。攻击者利用该漏洞可以将任何类型的文件上传到服务器。

CVSS 9.8 · Critical EPSS 2.76% · P85
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2023-28115

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Snappy vulnerable to PHAR deserialization, allowing remote code execution
Source: CVE Program / CVE List V5
Vulnerability Description
Snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. Prior to version 1.4.2, Snappy is vulnerable to PHAR deserialization due to a lack of checking on the protocol before passing it into the `file_exists()` function. If an attacker can upload files of any type to the server he can pass in the phar:// protocol to unserialize the uploaded file and instantiate arbitrary PHP objects. This can lead to remote code execution especially when snappy is used with frameworks with documented POP chains like Laravel/Symfony vulnerable developer code. If a user can control the output file from the `generateFromHtml()` function, it will invoke deserialization. This vulnerability is capable of remote code execution if Snappy is used with frameworks or developer code with vulnerable POP chains. It has been fixed in version 1.4.2.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
可信数据的反序列化
Source: CVE Program / CVE List V5
Vulnerability Title
Snappy 代码问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Snappy是KNP Labs个人开发者的一个 PHP 库,允许从 url 或 html 页面生成缩略图、快照或 PDF。 Snappy 1.4.2之前版本存在代码问题漏洞,该漏洞源于缺乏对协议的检查。攻击者利用该漏洞可以将任何类型的文件上传到服务器。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
KnpLabs snappy < 1.4.2 -

II. Public POCs for CVE-2023-28115

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2023-28115

登录查看更多情报信息。

Patches & Fixes for CVE-2023-28115 (3)

Vendor Advisories for CVE-2023-28115 (1)

Other References for CVE-2023-28115 (2)

IV. Related Vulnerabilities

V. Comments for CVE-2023-28115

No comments yet


Leave a comment