mitre-attack / mitre-attack/attack-website

Bleach is deprecated

Open
#438 0 comments 0 reactions 1 assignee View on GitHub

@seansica is already working on this.

Since Jun 28, 2023.

Dominant language
HTML
Stars
588
Forks
174
Avg merge
13d 4h
Merged PRs (30d)
2

Description

Per Mozilla, as of Jan 23, Bleach is deprecated: https://github.com/mozilla/bleach/issues/698#issue-1553425406

They will continue to provide security updates and bug fixes for approximately one year.

We need to replace Bleach.

ammonia looks like a promising solution but there may be others.

This is a good opportunity to refactor a bit. The process of sanitizing the HTML and generating the seed file (index.json) for the search index should be decoupled. There ought to be a separation of concerns between the generation of the website content and the generation of the search index.

Order of events:

  1. Build website (Pelican/update-attack.py)
  2. Generate seed file for search index (e.g., ammonia)
  3. Generate search index (attack-search --> npm/webpack)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.