rollbar-php icon indicating copy to clipboard operation
rollbar-php copied to clipboard

Scrubbing HTTP_COOKIE

Open nagibyro opened this issue 6 years ago • 0 comments

Issue

Some php hosting sets cookie values via $_SERVER['HTTP_COOKIE'] which can contain sensitive cookie values which are passed through to rollbar. DataBuilder::getHeaders() will pull the cookies into the payload.

Adding Cookie to scrub_fields configuration mitigated the issue for us, however that got rid of all cookies which may or may not be desirable.

Extra note it'd be nice if scrub_fields in php worked similarly to how the javascript sdk works where scrub fields appends to the default list of fields instead of replacing it, with an extra option if you wanted to override the default. see overwriteScrubFields and scrubFields in the js docs

nagibyro avatar Dec 11 '19 20:12 nagibyro