Python: Move urllib and urllib2 to be part of stdlib modeling

This commit is contained in:
Rasmus Wriedt Larsen
2022-03-04 11:31:47 +01:00
parent c65839bb77
commit 02a97b08bb
10 changed files with 22 additions and 13 deletions

View File

@@ -47,8 +47,6 @@ private import semmle.python.frameworks.Toml
private import semmle.python.frameworks.Tornado
private import semmle.python.frameworks.Twisted
private import semmle.python.frameworks.Ujson
private import semmle.python.frameworks.Urllib
private import semmle.python.frameworks.Urllib2
private import semmle.python.frameworks.Urllib3
private import semmle.python.frameworks.Yaml
private import semmle.python.frameworks.Yarl

View File

@@ -13,6 +13,9 @@ private import semmle.python.frameworks.PEP249
private import semmle.python.frameworks.internal.PoorMansFunctionResolution
private import semmle.python.frameworks.internal.SelfRefMixin
private import semmle.python.frameworks.internal.InstanceTaintStepsHelper
// modeling split over multiple files to keep this file from becoming too big
private import semmle.python.frameworks.Stdlib.Urllib
private import semmle.python.frameworks.Stdlib.Urllib2
/** Provides models for the Python standard library. */
module Stdlib {

View File

@@ -1,6 +1,10 @@
/**
* Provides classes modeling security-relevant aspects of the `urllib` PyPI package.
* See https://docs.python.org/3.9/library/urllib.html
* Provides classes modeling security-relevant aspects of the `urllib` module, part of
* the Python standard library.
*
* See
* - https://docs.python.org/2/library/urllib.html
* - https://docs.python.org/3/library/urllib.html
*/
private import python
@@ -8,8 +12,12 @@ private import semmle.python.Concepts
private import semmle.python.ApiGraphs
/**
* Provides models for the `Urllib` PyPI package.
* see https://docs.python.org/3.9/library/urllib.html
* Provides models for the `urllib` module, part of
* the Python standard library.
*
* See
* - https://docs.python.org/2/library/urllib.html
* - https://docs.python.org/3/library/urllib.html
*/
private module Urllib {
/**

View File

@@ -1,5 +1,7 @@
/**
* Provides classes modeling security-relevant aspects of the `urllib2` PyPI package.
* Provides classes modeling security-relevant aspects of the `urllib2` module, part of
* the Python 2 standard library.
*
* See https://docs.python.org/2/library/urllib2.html
*/
@@ -8,8 +10,10 @@ private import semmle.python.Concepts
private import semmle.python.ApiGraphs
/**
* Provides models for the `urllib2` PyPI package.
* see https://docs.python.org/2/library/urllib2.html
* Provides models for the the `urllib2` module, part of
* the Python 2 standard library.
*
* See https://docs.python.org/2/library/urllib2.html
*/
private module Urllib2 {
/**

View File

@@ -1,2 +0,0 @@
import python
import experimental.meta.ConceptsTest

View File

@@ -1,2 +0,0 @@
import python
import experimental.meta.ConceptsTest