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
{{ message }}
Repository navigation
Scrubbing bug causing PII leaks in Rollbar PHP library #463
Because of how the scrubbing feature is implemented, form submissions that cause exceptions and subsequently trigger Rollbar reporting can be excluded from the usual scrubbing process under certain circumstances.
Technical explanation:
In src/Scrubber.php on line 81-82 you are serializing in this case the body of a request containing form fields into an array. Usually this is no problem. However, when you have form arrays and they appear out of order it can cause line 81 to rearrange the hierarchy of the request (because of the array html fields), which causes the line 82 condition to fail which then means scrubbing is skipped on that field.
Perhaps a more robust approach would be to scrub everything except those identified in an allow list. That mode could be engaged in a backward compatible way with a new flag at configuration time, along the lines of scrubAllExcept: [ 'login' ]. Thoughts?
Activity
bishopb commentedon Nov 6, 2020
Perhaps a more robust approach would be to scrub everything except those identified in an allow list. That mode could be engaged in a backward compatible way with a new flag at configuration time, along the lines of
scrubAllExcept: [ 'login' ]. Thoughts?Fixed #463 PII can be leaked if nested query string keys are out of o…
Merge pull request #663 from rollbar/fixed/issue-463-pii-can-be-leake…