Local-network response disclosure via DNS rebinding bypass
Published Jul 1, 2022 · Updated Sep 17, 2024
Server-side request forgery in OP Engineering link-preview-js before 2.1.16 allows attackers to read local-network responses via crafted URLs. URL validation rejects literal private addresses but getLinkPreview still fetches hostnames whose DNS answers resolve to loopback or private addresses. Reachability requires a consuming server to pass attacker-controlled URLs to the function; successful requests expose response content from reachable private hosts and ports.
Summary
What happened
Server-side request forgery in OP Engineering link-preview-js before 2.1.16 allows attackers to read local-network responses via crafted URLs. URL validation rejects literal private addresses but getLinkPreview still fetches hostnames whose DNS answers resolve to loopback or private addresses. Reachability requires a consuming server to pass attacker-controlled URLs to the function; successful requests expose response content from reachable private hosts and ports.
The record
- CVE
- CVE-2022-25876
- Published
- Jul 1, 2022
- Updated
- Sep 17, 2024
- Vendor
- OP Engineering
- Product
- link-preview-js
- Classifications
- CWE-918
- Attack vector
- local
- Privileges
- Unavailable
Timeline
How it unfolded
- Jul 1, 2022CVE publishedPublication date reported by the CVE source.
- Sep 17, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=unspecified <2.1.16
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- DNS-to-loopback reproduction stepsproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo