Skip to content

Scrubbing bug causing PII leaks in Rollbar PHP library #463

@ArturMoczulski

Description

@ArturMoczulski

Feedback from one of the users:

While investigating the leak of some PII information from our systems to Rollbar I identified a pretty serious bug in your PHP library (https://github.com/rollbar/rollbar-php).

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.

Scrubbing works:
login[username][email protected]&login[password]=secret

Scrubbing fails:
login[username][email protected]&unrelatedField=123&login[password]=secret

When scrubbing fails, passwords and other sensitive PII information are sent to Rollbar exempt from the usual scrubbing process.

We're implementing mitigations on our end to prevent this happening in the short term but is there any chance this bug could be fixed?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions