Skip to content

Commit d92fb78

Browse files
Merge branch 'master' into encrypt-jwt-value
2 parents b988fc1 + b541623 commit d92fb78

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

collector/utils/url/index.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/** ATTN: SECURITY RESEARCHERS
2+
* To Security researchers about to submit an SSRF report CVE - please don't.
3+
* We are aware that the code below is does not defend against any of the thousands of ways
4+
* you can map a hostname to another IP. The code below does not have intention of blocking this
5+
* and is simply to prevent the user from accidentally putting in non-valid websites, which is all this protects
6+
* since _all urls must be submitted by the user anyway_ and cannot be done with authentication and manager or admin roles.
7+
* If an attacker has those roles then the system is already vulnerable and this is not a primary concern.
8+
*
9+
* We have gotten this report may times, marked them as duplicate or information and continue to get them. We communicate
10+
* already that deployment (and security) of an instance is on the deployer and system admin deploying it. This would include
11+
* isolation, firewalls, and the general security of the instance.
12+
*/
13+
114
const VALID_PROTOCOLS = ["https:", "http:"];
215
const INVALID_OCTETS = [192, 172, 10, 127];
316

@@ -19,7 +32,7 @@ function validURL(url) {
1932
if (!VALID_PROTOCOLS.includes(destination.protocol)) return false;
2033
if (isInvalidIp(destination)) return false;
2134
return true;
22-
} catch {}
35+
} catch { }
2336
return false;
2437
}
2538

0 commit comments

Comments
 (0)