Skip to content
SSRF Disclosed report Intermediate CVE-2022-0766

Server-Side Request Forgery in calibreweb

calibreweb before version 0.6.17 has an incomplete fix for CVE-2022-0339, allowing server-side request forgery because the blacklist does not block the address [redacted], which resolves to localhost. An attacker could use this to make the server send requests to internal services.

janeczku/calibre-web

Originally disclosed on huntr

Critical View original

calibreweb prior to version 0.6.17 is vulnerable to server-side request forgery (SSRF). This is due to an incomplete fix for CVE-2022-0339. The blacklist does not check for 0.0.0.0, which would result in a payload of 0.0.0.0 resolving to localhost.

From the GitHub Advisory Database (GHSA-2647-c639-qv2j, CC BY 4.0).

The original report as published on the GitHub Advisory Database. Images and videos are our own copies; raw HTML is shown as text. View it on GitHub Advisory Database.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the blacklist used to prevent SSRF did not include the address [redacted], which resolves to localhost, making the fix for CVE-2022-0339 incomplete.

Impact

An attacker could perform SSRF to access internal services on the server, though the text does not specify the full extent of what could be reached.

What the attacker needed

Calibreweb before 0.6.17

The fix

The issue was fixed in version 0.6.17 by updating the blacklist to include 0.0.0.0.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Server-side request forgery (SSRF) is when an attacker tricks a server into making requests to other systems, often internal ones that are not reachable from the internet. Here, the application tried to block dangerous addresses but missed one that points back to the server itself, so an attacker could still reach internal services.

What is SSRF?

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.

More from janeczku/calibre-web

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Server-side request forgery (SSRF)

The lesson behind this report.

The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.