cve-2011-4940
Vulnerability from cvelistv5
Published
2012-06-27 10:00
Modified
2024-08-07 00:23
Severity ?
Summary
The list_directory function in Lib/SimpleHTTPServer.py in SimpleHTTPServer in Python before 2.5.6c1, 2.6.x before 2.6.7 rc2, and 2.7.x before 2.7.2 does not place a charset parameter in the Content-Type HTTP header, which makes it easier for remote attackers to conduct cross-site scripting (XSS) attacks against Internet Explorer 7 via UTF-7 encoding.
Impacted products
n/an/a
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-07T00:23:39.213Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "name": "USN-1592-1",
            "tags": [
              "vendor-advisory",
              "x_refsource_UBUNTU",
              "x_transferred"
            ],
            "url": "http://www.ubuntu.com/usn/USN-1592-1"
          },
          {
            "name": "JVN#51176027",
            "tags": [
              "third-party-advisory",
              "x_refsource_JVN",
              "x_transferred"
            ],
            "url": "http://jvn.jp/en/jp/JVN51176027/index.html"
          },
          {
            "name": "51040",
            "tags": [
              "third-party-advisory",
              "x_refsource_SECUNIA",
              "x_transferred"
            ],
            "url": "http://secunia.com/advisories/51040"
          },
          {
            "name": "50858",
            "tags": [
              "third-party-advisory",
              "x_refsource_SECUNIA",
              "x_transferred"
            ],
            "url": "http://secunia.com/advisories/50858"
          },
          {
            "tags": [
              "x_refsource_CONFIRM",
              "x_transferred"
            ],
            "url": "http://bugs.python.org/issue11442"
          },
          {
            "name": "54083",
            "tags": [
              "vdb-entry",
              "x_refsource_BID",
              "x_transferred"
            ],
            "url": "http://www.securityfocus.com/bid/54083"
          },
          {
            "name": "USN-1596-1",
            "tags": [
              "vendor-advisory",
              "x_refsource_UBUNTU",
              "x_transferred"
            ],
            "url": "http://www.ubuntu.com/usn/USN-1596-1"
          },
          {
            "name": "USN-1613-2",
            "tags": [
              "vendor-advisory",
              "x_refsource_UBUNTU",
              "x_transferred"
            ],
            "url": "http://www.ubuntu.com/usn/USN-1613-2"
          },
          {
            "name": "JVNDB-2012-000063",
            "tags": [
              "third-party-advisory",
              "x_refsource_JVNDB",
              "x_transferred"
            ],
            "url": "http://jvndb.jvn.jp/jvndb/JVNDB-2012-000063"
          },
          {
            "tags": [
              "x_refsource_CONFIRM",
              "x_transferred"
            ],
            "url": "https://bugzilla.redhat.com/show_bug.cgi?id=803500"
          },
          {
            "name": "51024",
            "tags": [
              "third-party-advisory",
              "x_refsource_SECUNIA",
              "x_transferred"
            ],
            "url": "http://secunia.com/advisories/51024"
          },
          {
            "name": "USN-1613-1",
            "tags": [
              "vendor-advisory",
              "x_refsource_UBUNTU",
              "x_transferred"
            ],
            "url": "http://www.ubuntu.com/usn/USN-1613-1"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "n/a",
          "vendor": "n/a",
          "versions": [
            {
              "status": "affected",
              "version": "n/a"
            }
          ]
        }
      ],
      "datePublic": "2012-06-19T00:00:00",
      "descriptions": [
        {
          "lang": "en",
          "value": "The list_directory function in Lib/SimpleHTTPServer.py in SimpleHTTPServer in Python before 2.5.6c1, 2.6.x before 2.6.7 rc2, and 2.7.x before 2.7.2 does not place a charset parameter in the Content-Type HTTP header, which makes it easier for remote attackers to conduct cross-site scripting (XSS) attacks against Internet Explorer 7 via UTF-7 encoding."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "n/a",
              "lang": "en",
              "type": "text"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2012-10-13T09:00:00",
        "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
        "shortName": "redhat"
      },
      "references": [
        {
          "name": "USN-1592-1",
          "tags": [
            "vendor-advisory",
            "x_refsource_UBUNTU"
          ],
          "url": "http://www.ubuntu.com/usn/USN-1592-1"
        },
        {
          "name": "JVN#51176027",
          "tags": [
            "third-party-advisory",
            "x_refsource_JVN"
          ],
          "url": "http://jvn.jp/en/jp/JVN51176027/index.html"
        },
        {
          "name": "51040",
          "tags": [
            "third-party-advisory",
            "x_refsource_SECUNIA"
          ],
          "url": "http://secunia.com/advisories/51040"
        },
        {
          "name": "50858",
          "tags": [
            "third-party-advisory",
            "x_refsource_SECUNIA"
          ],
          "url": "http://secunia.com/advisories/50858"
        },
        {
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "http://bugs.python.org/issue11442"
        },
        {
          "name": "54083",
          "tags": [
            "vdb-entry",
            "x_refsource_BID"
          ],
          "url": "http://www.securityfocus.com/bid/54083"
        },
        {
          "name": "USN-1596-1",
          "tags": [
            "vendor-advisory",
            "x_refsource_UBUNTU"
          ],
          "url": "http://www.ubuntu.com/usn/USN-1596-1"
        },
        {
          "name": "USN-1613-2",
          "tags": [
            "vendor-advisory",
            "x_refsource_UBUNTU"
          ],
          "url": "http://www.ubuntu.com/usn/USN-1613-2"
        },
        {
          "name": "JVNDB-2012-000063",
          "tags": [
            "third-party-advisory",
            "x_refsource_JVNDB"
          ],
          "url": "http://jvndb.jvn.jp/jvndb/JVNDB-2012-000063"
        },
        {
          "tags": [
            "x_refsource_CONFIRM"
          ],
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=803500"
        },
        {
          "name": "51024",
          "tags": [
            "third-party-advisory",
            "x_refsource_SECUNIA"
          ],
          "url": "http://secunia.com/advisories/51024"
        },
        {
          "name": "USN-1613-1",
          "tags": [
            "vendor-advisory",
            "x_refsource_UBUNTU"
          ],
          "url": "http://www.ubuntu.com/usn/USN-1613-1"
        }
      ]
    }
  },
  "cveMetadata": {
    "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749",
    "assignerShortName": "redhat",
    "cveId": "CVE-2011-4940",
    "datePublished": "2012-06-27T10:00:00",
    "dateReserved": "2011-12-23T00:00:00",
    "dateUpdated": "2024-08-07T00:23:39.213Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2011-4940\",\"sourceIdentifier\":\"secalert@redhat.com\",\"published\":\"2012-06-27T10:18:36.433\",\"lastModified\":\"2023-02-13T03:24:05.570\",\"vulnStatus\":\"Modified\",\"descriptions\":[{\"lang\":\"en\",\"value\":\"The list_directory function in Lib/SimpleHTTPServer.py in SimpleHTTPServer in Python before 2.5.6c1, 2.6.x before 2.6.7 rc2, and 2.7.x before 2.7.2 does not place a charset parameter in the Content-Type HTTP header, which makes it easier for remote attackers to conduct cross-site scripting (XSS) attacks against Internet Explorer 7 via UTF-7 encoding.\"},{\"lang\":\"es\",\"value\":\"La funci\u00f3n list_directory en lib/SimpleHTTPServer.py en SimpleHTTPServer en Python anterior a v2.5.6c1, v2.6.x anterior a v2.6.7 RC2, y v2.7.x anterior a v2.7.2 no pone un par\u00e1metro charset en la cabecera Content-Type de HTTP, lo que hace m\u00e1s f\u00e1cil para los atacantes remotos realizar ataques XSS contra Internet Explorer 7 a trav\u00e9s de codificaci\u00f3n UTF-7.\"}],\"metrics\":{\"cvssMetricV2\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"2.0\",\"vectorString\":\"AV:N/AC:H/Au:N/C:N/I:P/A:N\",\"accessVector\":\"NETWORK\",\"accessComplexity\":\"HIGH\",\"authentication\":\"NONE\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"PARTIAL\",\"availabilityImpact\":\"NONE\",\"baseScore\":2.6},\"baseSeverity\":\"LOW\",\"exploitabilityScore\":4.9,\"impactScore\":2.9,\"acInsufInfo\":false,\"obtainAllPrivilege\":false,\"obtainUserPrivilege\":false,\"obtainOtherPrivilege\":false,\"userInteractionRequired\":false}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-79\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*\",\"versionEndIncluding\":\"2.5.6\",\"matchCriteriaId\":\"696C2497-C870-4AF2-B9A1-5994E5F40F99\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:0.9.0:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"EC4F49A3-B5D0-447C-859E-C415280040C6\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:0.9.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"A65A3088-D28E-4781-8374-FC7B9A97CAFD\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:1.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"39902E97-2937-48F5-8FDE-5C8F030FA8DF\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:1.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"27E9A887-ACB1-4602-8E5D-D82361E93E3D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:1.5.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"B0DB6484-06C5-4E74-B0FA-198523C60C04\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:1.6:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"0CA90DC8-6C72-4925-99B9-C7341ED94952\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:1.6.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"FAA8C532-04F2-4F61-86AD-5289C9E605EC\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.0.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"AEB6ED07-C176-496D-B9CA-F24933D71999\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.1.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"1A223BB3-DD5A-48C9-9C82-5D1C4F122828\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.1.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"C14973EE-5A2E-4935-8D29-594761502D72\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.1.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"3E502388-0A87-4503-8EC9-8A43E8BF43E9\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.2.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"A3CD168A-2180-44C8-8784-3B32589904BB\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.2.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"EB30EAAD-5CF0-41DD-909B-C6AD94D88ABB\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.2.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"569FAD3A-17DF-424A-AF93-B0720D48D6B6\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.3.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"0BD8ED56-5568-4461-B94A-0B5C1EF8C01A\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.3.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"396FFF60-8F61-43E5-BF0C-A0C319714247\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.3.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"75872F94-A537-4E57-8325-3426DB5D6C75\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.3.4:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"6A038A64-E659-47BB-B2C6-8FD151684CBB\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.3.5:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"A82F7C03-C9D3-4B83-AF74-30981EC25431\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.3.7:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"02839080-EFB1-4F63-9D4E-45E26D82ECF5\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.4.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"00C353D0-C579-4C0B-AD7D-9E56353F2BF5\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.4.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"7FB87E45-DBC2-4D0F-B4E9-38585D2F92A4\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.4.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"976E5CD0-3A1E-43E6-9C34-B8F1EE1AB863\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.4.4:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"179EDC23-2328-4BB6-98D5-7C1A975A0C46\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.4.6:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"87B6E723-EC9D-44EF-9DB8-8A229E0ABBB5\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.5.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"12D3CD4F-0C58-46F4-939D-FDF19BC98729\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.5.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"6D13FC75-3979-40A8-A1FE-EF86EB15C8A7\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.5.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"78AE8C3C-53A1-408A-BA23-1EBA1E6A0E4C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.5.4:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"DA59C66F-E469-42C1-9745-330E35AE5A26\"}]}]},{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.6.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"244740D0-CACA-4607-964C-F0F46153653D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.6.2:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"BA3487C5-05AD-4553-B123-45F0A51BBA3C\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.6.3:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"486AB201-5BE7-4947-B18B-DA8F86E5D626\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.6.4:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"E852D2C6-D744-4311-97B3-CAEF073D6585\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.6.5:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"845FBD14-4175-49F1-B762-4F550CEF5B0D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.6.6:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"84E7646B-BC7C-4ED6-925B-268291F31610\"}]}]},{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.7.1:*:*:*:*:*:*:*\",\"matchCriteriaId\":\"8CE2063E-5B74-4731-885F-80D2D7B15604\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.7.1:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"FC647F82-9679-4B26-AFF1-1B43B0AF18B5\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:python:python:2.7.2:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"046BCC55-F166-4C31-AB2B-815A0DFA2BEE\"}]}]}],\"references\":[{\"url\":\"http://bugs.python.org/issue11442\",\"source\":\"secalert@redhat.com\"},{\"url\":\"http://jvn.jp/en/jp/JVN51176027/index.html\",\"source\":\"secalert@redhat.com\"},{\"url\":\"http://jvndb.jvn.jp/jvndb/JVNDB-2012-000063\",\"source\":\"secalert@redhat.com\"},{\"url\":\"http://secunia.com/advisories/50858\",\"source\":\"secalert@redhat.com\"},{\"url\":\"http://secunia.com/advisories/51024\",\"source\":\"secalert@redhat.com\"},{\"url\":\"http://secunia.com/advisories/51040\",\"source\":\"secalert@redhat.com\"},{\"url\":\"http://www.securityfocus.com/bid/54083\",\"source\":\"secalert@redhat.com\"},{\"url\":\"http://www.ubuntu.com/usn/USN-1592-1\",\"source\":\"secalert@redhat.com\"},{\"url\":\"http://www.ubuntu.com/usn/USN-1596-1\",\"source\":\"secalert@redhat.com\"},{\"url\":\"http://www.ubuntu.com/usn/USN-1613-1\",\"source\":\"secalert@redhat.com\"},{\"url\":\"http://www.ubuntu.com/usn/USN-1613-2\",\"source\":\"secalert@redhat.com\"},{\"url\":\"https://bugzilla.redhat.com/show_bug.cgi?id=803500\",\"source\":\"secalert@redhat.com\"}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading...

Loading...

Loading...

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.