Bugzilla – Bug 12407
Bug in SSN detection in DLP module causes false positives
Last modified: 2019-09-30 11:47:58 EDT
Wagde on the clamav-users mailing list reported a bug in the SSN detection algorithm in the DLP module: https://lists.gt.net/clamav/users/77165 See https://github.com/Cisco-Talos/clamav-devel/blob/dev/0.102/libclamav/dlp.c#L295 where "%3d-%2d-%4d" and "%3d%2d%4d" format strings for sscanf() are used with the assumption that the numbers must of width 3, 2, and 4. In reality, the width specifier is a maximum: http://www.cplusplus.com/reference/cstdio/scanf/ The easy fix would be to make sure that Area >= 100, Group >= 10, and Serial >= 1000 -- though as per the comments it seems like sscanf() is an inefficient choice for the implementation.