Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Three garbage bytes found in the QR-bill payload #19

Open
epsitec opened this issue Aug 20, 2020 · 0 comments
Open

Three garbage bytes found in the QR-bill payload #19

epsitec opened this issue Aug 20, 2020 · 0 comments

Comments

@epsitec
Copy link
Collaborator

epsitec commented Aug 20, 2020

A customer has sent us an invalid QR-bill, which gets (incorrectly) validated by the SWICO QR-bill validator.

The payload does not start with SPC but with the three bytes 0xEF, 0xBB and 0xBF.

It appears that an early version of the ERP developed by BMC included by error the Unicode BOM (byte order mark, or \ufeff) encoded as UTF-8, which produces the byte sequence EFBBBF at the beginning of the payload. To our knowledge, BMC fixed the issue and released an update. There might, however, very well be other ERPs in the wild which have the same issue.

The SWICO QR-bill validator does not report the BOM because it gets stripped while converting the byte array of the QR code to a string representation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant