You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: The client IP address may be determined incorrectly in some cases; this fixes a security vulnerability in which the Parse Server option masterKeyIps may be circumvented, see [GHSA-vm5r-c87r-pf6x](GHSA-vm5r-c87r-pf6x) (parse-community#8372)
BREAKING CHANGE: The mechanism to determine the client IP address has been rewritten; to correctly determine the IP address it is now required to set the Parse Server option `trustProxy` accordingly if Parse Server runs behind a proxy server, see the express framework's [trust proxy](https://expressjs.com/en/guide/behind-proxies.html) setting (parse-community#8372)
Copy file name to clipboardExpand all lines: src/cloud-code/Parse.Cloud.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -722,7 +722,7 @@ module.exports = ParseCloud;
722
722
* @property {Boolean} isChallenge If true, means the current request is originally triggered by an auth challenge.
723
723
* @property {Parse.User} user If set, the user that made the request.
724
724
* @property {Parse.Object} object The object triggering the hook.
725
-
* @property {String} ip The IP address of the client making the request.
725
+
* @property {String} ip The IP address of the client making the request. To ensure retrieving the correct IP address, set the Parse Server option `trustProxy: true` if Parse Server runs behind a proxy server, for example behind a load balancer.
726
726
* @property {Object} headers The original HTTP headers for the request.
727
727
* @property {String} triggerName The name of the trigger (`beforeSave`, `afterSave`, ...)
728
728
* @property {Object} log The current logger inside Parse Server.
0 commit comments