Monitor vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
6.9
LibreDesk Webhooks Allows Attacker to Access Internal Network
CVE-2026-26957
GHSA-wgm6-9rvv-3438
Summary
A security vulnerability in LibreDesk's Webhooks module allows an authenticated administrator to access internal corporate networks or cloud infrastructure. This can happen by exploiting internal port scanning or error-based information leakage. It is recommended to update or patch the Webhooks module to prevent unauthorized access.
What to do
- Update github.com abhinavxd to version 1.0.2-0.20260215211005-727213631ce6.
Affected software
| Vendor | Product | Affected versions | Fix available |
|---|---|---|---|
| github.com | abhinavxd | <= 1.0.2-0.20260215211005-727213631ce6 | 1.0.2-0.20260215211005-727213631ce6 |
Original title
Libredesk has a SSRF Vulnerability in Webhooks
Original description
**Date:** 2025-12-07
**Vulnerability:** Server-Side Request Forgery (SSRF)
**Component:** Webhooks Module
## Executive Summary
A critical security vulnerability exists in the LibreDesk Webhooks module that allows an authenticated "Application Admin" to compromise the underlying cloud infrastructure or internal corporate network where this service is being hosted.
The application fails to validate destination URLs for webhooks. This allows an attacker to force the server to make HTTP requests to arbitrary internal destinations.
## Confirmed Attack Vectors
### 1. Internal Port Scanning (Network Mapping)
Attackers can map the internal network by observing the difference between successful connections and connection errors. This works even if the response body is not returned.
**Proof of Exploitation (from Server Logs):**
* **Open Port (8890)**: The server connects successfully.
```text
timestamp=... level=info message="webhook delivered successfully" ... status_code=200
```
* **Closed Port (8891)**: The server fails to connect.
```text
timestamp=... level=error message="webhook delivery failed" ... error="... connect: connection refused"
```
**Impact**: An attacker can identify running services (databases, caches, internal apps) on the local network (e.g., `localhost`, `192.168.x.x`).
### 2. Information Leakage (Error-Based)
If the internal service returns a non-2xx response (e.g., 403 Forbidden, 404 Not Found, 500 Error), the application **logs the full response body**.
**Proof of Exploitation (from Server Logs):**
```text
timestamp=... level=error message="webhook delivery failed" ...
response="{\"secret_key\": \"xxx123\", \"role\": \"admin\"}"
```
**Impact**: An attacker can extract sensitive data by targeting endpoints that return errors or by forcing errors on internal services.
## Technical Root Cause
1. **Missing Input Validation**: `cmd/webhooks.go` only checks if the URL is empty, not if it resolves to a private IP.
2. **Unrestricted HTTP Client**: `internal/webhook/webhook.go` uses a default `http.Client` that follows redirects and connects to any IP.
3. **Verbose Error Logging**: The application logs the full response body on failure, creating a side-channel for data exfiltration.
## Remediation Required
To prevent this, the application must implement **Defense in Depth**:
1. **Input Validation**: Block URLs resolving to private IP ranges (RFC 1918) and Link-Local addresses.
2. **Safe HTTP Client**: Use a custom `http.Transport` that verifies the destination IP address *after* DNS resolution to prevent DNS rebinding attacks.
**Vulnerability:** Server-Side Request Forgery (SSRF)
**Component:** Webhooks Module
## Executive Summary
A critical security vulnerability exists in the LibreDesk Webhooks module that allows an authenticated "Application Admin" to compromise the underlying cloud infrastructure or internal corporate network where this service is being hosted.
The application fails to validate destination URLs for webhooks. This allows an attacker to force the server to make HTTP requests to arbitrary internal destinations.
## Confirmed Attack Vectors
### 1. Internal Port Scanning (Network Mapping)
Attackers can map the internal network by observing the difference between successful connections and connection errors. This works even if the response body is not returned.
**Proof of Exploitation (from Server Logs):**
* **Open Port (8890)**: The server connects successfully.
```text
timestamp=... level=info message="webhook delivered successfully" ... status_code=200
```
* **Closed Port (8891)**: The server fails to connect.
```text
timestamp=... level=error message="webhook delivery failed" ... error="... connect: connection refused"
```
**Impact**: An attacker can identify running services (databases, caches, internal apps) on the local network (e.g., `localhost`, `192.168.x.x`).
### 2. Information Leakage (Error-Based)
If the internal service returns a non-2xx response (e.g., 403 Forbidden, 404 Not Found, 500 Error), the application **logs the full response body**.
**Proof of Exploitation (from Server Logs):**
```text
timestamp=... level=error message="webhook delivery failed" ...
response="{\"secret_key\": \"xxx123\", \"role\": \"admin\"}"
```
**Impact**: An attacker can extract sensitive data by targeting endpoints that return errors or by forcing errors on internal services.
## Technical Root Cause
1. **Missing Input Validation**: `cmd/webhooks.go` only checks if the URL is empty, not if it resolves to a private IP.
2. **Unrestricted HTTP Client**: `internal/webhook/webhook.go` uses a default `http.Client` that follows redirects and connects to any IP.
3. **Verbose Error Logging**: The application logs the full response body on failure, creating a side-channel for data exfiltration.
## Remediation Required
To prevent this, the application must implement **Defense in Depth**:
1. **Input Validation**: Block URLs resolving to private IP ranges (RFC 1918) and Link-Local addresses.
2. **Safe HTTP Client**: Use a custom `http.Transport` that verifies the destination IP address *after* DNS resolution to prevent DNS rebinding attacks.
nvd CVSS4.0
6.9
Vulnerability type
CWE-209
CWE-918
Server-Side Request Forgery (SSRF)
Published: 18 Feb 2026 · Updated: 11 Mar 2026 · First seen: 6 Mar 2026