Commit c162a12d authored by Daniel Rubery's avatar Daniel Rubery Committed by Commit Bot

Add pyo and pyd as tracked file types

Extensions can download and execute a pyo or pyd with no user gestures,
allowing for remote code execution. By marking pyo and pyd as
ALLOW_ON_USER_GESTURE and DANGEROUS, respectively, we prevent this
behavior.

Bug: 902234
Change-Id: I295cdd2906ebe779670afb55196cea7715dc88f4
Reviewed-on: https://chromium-review.googlesource.com/c/1324419
Commit-Queue: Daniel Rubery <drubery@chromium.org>
Reviewed-by: default avatarNathan Parker <nparker@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606309}
parent c9720564
......@@ -8,7 +8,7 @@
##
## Top level settings
##
version_id: 21
version_id: 22
sampled_ping_probability: 0.01
max_archived_binaries_to_report: 10
default_file_type {
......@@ -719,6 +719,50 @@ file_types {
auto_open_hint: DISALLOW_AUTO_OPEN
}
}
file_types {
# Equivalent of a DLL, for python libraries
# Added with crbug.com/902234
extension: "pyd"
uma_value: 318
ping_setting: FULL_PING
platform_settings {
platform: PLATFORM_LINUX
danger_level: DANGEROUS
auto_open_hint: DISALLOW_AUTO_OPEN
}
platform_settings {
platform: PLATFORM_MAC
danger_level: DANGEROUS
auto_open_hint: DISALLOW_AUTO_OPEN
}
platform_settings {
platform: PLATFORM_WINDOWS
danger_level: DANGEROUS
auto_open_hint: DISALLOW_AUTO_OPEN
}
}
file_types {
# Compiled python code
# Added with crbug.com/902234
extension: "pyo"
uma_value: 319
ping_setting: FULL_PING
platform_settings {
platform: PLATFORM_LINUX
danger_level: ALLOW_ON_USER_GESTURE
auto_open_hint: DISALLOW_AUTO_OPEN
}
platform_settings {
platform: PLATFORM_MAC
danger_level: ALLOW_ON_USER_GESTURE
auto_open_hint: DISALLOW_AUTO_OPEN
}
platform_settings {
platform: PLATFORM_WINDOWS
danger_level: ALLOW_ON_USER_GESTURE
auto_open_hint: DISALLOW_AUTO_OPEN
}
}
file_types {
extension: "pyw"
uma_value: 132
......
......@@ -12266,6 +12266,8 @@ Called by update_net_error_codes.py.-->
<int value="315" label="osax"/>
<int value="316" label="settingcontent-ms"/>
<int value="317" label="oxt"/>
<int value="318" label="pyd"/>
<int value="319" label="pyo"/>
</enum>
<enum name="DownloadItem.DangerType">
......@@ -44538,6 +44540,8 @@ Called by update_net_trust_anchors.py.-->
<int value="315" label="OSAX"/>
<int value="316" label="SETTINGCONTENT-MS"/>
<int value="317" label="OXT"/>
<int value="318" label="PYD"/>
<int value="319" label="PYO"/>
</enum>
<enum name="SBClientDownloadIsSignedBinary">
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment