Description[SafeBrowsing] Alternate extensions should also be subject to block list.
FileSelectHelper subjects suggested filenames to the safe browsing
white/black lists prior to showing the file picker. However, if the list
of accepted file types passed in to the file picker is not empty, and
the suggested filename doesn't match the accepted file types, the file
picker may append an accpeted file extension to the suggested filename.
In order to prevent this from being abused, this CL causes
FileSelectHelper to also verify that the list of accepted file types is
also safe.
R=sky,nparker,bbudge,holte
BUG=575849
Committed: https://crrev.com/78ff0a5433b1c9f6fd2e3cddfc7e9cb28d809853
Cr-Commit-Position: refs/heads/master@{#371997}
Patch Set 1 #
Total comments: 5
Patch Set 2 : Add UMA for size of alternate extension list #
Total comments: 4
Patch Set 3 : Avoid a logarithmic bucket distribution. #Patch Set 4 : Switch to a sparse histogram. #
Total comments: 2
Patch Set 5 : Set a hard limit on measured alternate extension count. #
Total comments: 2
Patch Set 6 : Fix comment in histograms.xml #Messages
Total messages: 30 (10 generated)
|