mozilla-services / contile

This is the back-end server for the Mozilla Tile Service (MTS)
https://mozilla-services.github.io/contile/
Mozilla Public License 2.0
19 stars 2 forks source link

Web Security Checklist/Review #28

Closed pjenvey closed 2 years ago

pjenvey commented 3 years ago

From foxsec's web security checklist:

Risk Management

Infrastructure

Development

Dual Sign Off

Logging

Web Applications

Security Features

Databases

Common issues

┆Issue is synchronized with this Jira Task ┆Epic: General Project Tasks

pjenvey commented 3 years ago

..and additionally the Rust specific checklist:

Rust

A checklist for people using Rust to develop Firefox services, to be used in addition to the common checklist.

Recommended crates

Crate Description
Actix web Actix web is a small, pragmatic, and extremely fast rust web framework.
Hyper A fast and correct HTTP implementation for Rust.
Reqwest An ergonomic, batteries-included HTTP Client for Rust.
Serde Serde is a framework for serializing and deserializing Rust data structures efficiently and generically.
Slog The logging for Rust
jrconlin commented 3 years ago

Linked to https://jira.mozilla.com/browse/CONSVC-8

jrconlin commented 3 years ago

FWIW: Observatory gives an "A" rating: https://observatory.mozilla.org/analyze/contile.services.mozilla.com?third-party=false

jrconlin commented 3 years ago

Status: Downloaded newer image for owasp/zap2docker-stable:latest 2021-07-06 23:57:05,231 Could not find custom hooks file at /home/zap/.zap_hooks.py Jul 06, 2021 11:57:13 PM java.util.prefs.FileSystemPreferences$1 run INFO: Created user preferences directory. Total of 6 URLs ... PASS: Loosely Scoped Cookie [90033] FAIL-NEW: 0 FAIL-INPROG: 0 WARN-NEW: 0 WARN-INPROG: 0 INFO: 0 IGNORE: 0 PASS: 53

data-sync-user commented 3 years ago

➤ David Durst commented:

Philip Jenvey I realize this is low priority. Just wondering if the remaining few items have been addressed for Contile – or rather, if there was a plan to knock out the last few things?

data-sync-user commented 3 years ago

➤ Philip Jenvey commented:

David Durst Yea, I’m actively looking into one final item here

data-sync-user commented 2 years ago

➤ Philip Jenvey commented:

The “A” score on the Mozilla Observatory appears due to the root URL linking to MDN: https://observatory.mozilla.org/analyze/developer.mozilla.org ( https://observatory.mozilla.org/analyze/developer.mozilla.org|smart-link ) and it failing the SRI check.

I’ve pinged #mdn-dev about this and will follow up with them if they’d like an issue logged to improve their SRI support.

Everything else is done for Contile, closing out.

data-sync-user commented 2 years ago

➤ Philip Jenvey commented:

Logged this for MDN SRI support: https://github.com/mdn/yari/issues/4823 ( https://github.com/mdn/yari/issues/4823|smart-link )