New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 774246 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Last visit > 30 days ago
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , iOS , Chrome , Mac
Pri: 3
Type: Feature



Sign in to add a comment

Check for unknown JSON entry fields in the transport security state generator

Project Member Reported by lgar...@chromium.org, Oct 12 2017

Issue description

We accidentally added scotthelme.co.uk with `include_subdomains_for_expect_ct`, which doesn't exist.

However, this suggests that we won't catch things like typos either. It would be nice to check for unknown field names in the entries.
 
Summary: Check for unknown JSON entry fields in the transport security state generator (was: Check for unknown fields on the transport security state generator)
Owner: marti...@chromium.org
Status: Started (was: Available)
Project Member

Comment 3 by bugdroid1@chromium.org, Oct 28 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/5bb8a70eb01dd947d3173f9aec745c364b50f7e7

commit 5bb8a70eb01dd947d3173f9aec745c364b50f7e7
Author: Martijn Croonen <martijnc@chromium.org>
Date: Sat Oct 28 09:45:23 2017

Check for unknown keys in the transport security state JSON file.

This CL adds two checks to the transport security state JSON file
parser that ensure the entries have a valid mode ("force-https"
or empty) and that the entries don't contain any unknown fields.

These checks are intended to catch typo's that would othersize
degrade the security of the preloaded domains.

Bug:  774246 
Change-Id: Ifcb4f4994f982078cc72d7df10e6245da2d9909c
Reviewed-on: https://chromium-review.googlesource.com/738117
Commit-Queue: Martijn Croonen <martijnc@chromium.org>
Reviewed-by: Ryan Sleevi <rsleevi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#512394}
[modify] https://crrev.com/5bb8a70eb01dd947d3173f9aec745c364b50f7e7/net/tools/transport_security_state_generator/input_file_parsers.cc
[modify] https://crrev.com/5bb8a70eb01dd947d3173f9aec745c364b50f7e7/net/tools/transport_security_state_generator/input_file_parsers_unittest.cc

Status: Fixed (was: Started)

Sign in to add a comment