pySCG investigate on creating CWE-91 Prevent XML injection

Aberta
#9 1 comentário 0 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
48/100
Tipo de issue
Documentação
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
python, xml

Direção de pesquisa

Read the CWE-472 HTML rule and the linked CVE descriptions for examples that could fit a CWE-91 rule. The issue highlights example length and dependencies outside Python’s standard library as constraints. Done means providing a suitable XML injection example and guidance for the rule; the issue does not name a file or test to start from.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Missing code examples that are suitable in terms of length and need to install additional modules.

XML as such is similar to html not python but we do have rule's on html such as CWE-472.
Challenging to avoid using a module from outside of the standard lib in the code examples.

CVEs that could lead to an alternative code example (CWE-91):

CVE-2021-36359 (nist.gov)
CVE-2018-1000632 (nist.gov)
CVE-2022-46751 (nist.gov)
Its mostly an issue due to disabling of a DTD or lack of using one and lack of input sanitation. Subsequently an attacker has a greater choice in how the xml is arranged. Input sanitation can furthermore limit the attack vector.

Linguagem predominante
Python
Estrelas
2
Forks
2
Merge médio
11min
PRs com merge (30d)
2

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de ossf/python-secure-coding-guide

Todas as issues de ossf/python-secure-coding-guide

Issues semelhantes

Mais issues de Python

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.