GSD-2018-3769

Vulnerability from gsd - Updated: 2018-05-23 00:00
Details
When request on API contains the "format" parameter in GET, the input value of this parameter is rendered as the web-server responds with text/html header. Example: http://example.com/api/endpoint?format=%3Cscript%3Ealert(document.cookie)%3C/script%3E
Aliases

{
  "GSD": {
    "alias": "CVE-2018-3769",
    "description": "ruby-grape ruby gem suffers from a cross-site scripting (XSS) vulnerability via \"format\" parameter.",
    "id": "GSD-2018-3769"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "grape",
            "purl": "pkg:gem/grape"
          }
        }
      ],
      "aliases": [
        "CVE-2018-3769",
        "GHSA-f599-5m7p-hcpf"
      ],
      "details": "When request on API contains the \"format\" parameter in GET, the input\nvalue of this parameter is rendered as the web-server responds with\ntext/html header.\n\nExample:\nhttp://example.com/api/endpoint?format=%3Cscript%3Ealert(document.cookie)%3C/script%3E\n",
      "id": "GSD-2018-3769",
      "modified": "2018-05-23T00:00:00.000Z",
      "published": "2018-05-23T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/ruby-grape/grape/issues/1762"
        },
        {
          "type": "WEB",
          "url": "https://github.com/ruby-grape/grape/pull/1763"
        },
        {
          "type": "WEB",
          "url": "https://github.com/ruby-grape/grape/commit/6876b71efc7b03f7ce1be3f075eaa4e7e6de19af"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 6.1,
          "type": "CVSS_V3"
        }
      ],
      "summary": "ruby-grape Gem has XSS via \"format\" parameter"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "support@hackerone.com",
        "ID": "CVE-2018-3769",
        "STATE": "PUBLIC"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "ruby-grape ruby gem",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "\u003e= 1.0.3"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "Ruby Grape"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "ruby-grape ruby gem suffers from a cross-site scripting (XSS) vulnerability via \"format\" parameter."
          }
        ]
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "Cross-site Scripting (XSS) - Generic (CWE-79)"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/ruby-grape/grape/commit/6876b71efc7b03f7ce1be3f075eaa4e7e6de19af",
            "refsource": "CONFIRM",
            "url": "https://github.com/ruby-grape/grape/commit/6876b71efc7b03f7ce1be3f075eaa4e7e6de19af"
          },
          {
            "name": "https://github.com/ruby-grape/grape/issues/1762",
            "refsource": "CONFIRM",
            "url": "https://github.com/ruby-grape/grape/issues/1762"
          },
          {
            "name": "https://github.com/ruby-grape/grape/pull/1763",
            "refsource": "CONFIRM",
            "url": "https://github.com/ruby-grape/grape/pull/1763"
          }
        ]
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2018-3769",
      "cvss_v3": 6.1,
      "date": "2018-05-23",
      "description": "When request on API contains the \"format\" parameter in GET, the input\nvalue of this parameter is rendered as the web-server responds with\ntext/html header.\n\nExample:\nhttp://example.com/api/endpoint?format=%3Cscript%3Ealert(document.cookie)%3C/script%3E\n",
      "gem": "grape",
      "ghsa": "f599-5m7p-hcpf",
      "patched_versions": [
        "\u003e= 1.1.0"
      ],
      "related": {
        "url": [
          "https://github.com/ruby-grape/grape/pull/1763",
          "https://github.com/ruby-grape/grape/commit/6876b71efc7b03f7ce1be3f075eaa4e7e6de19af"
        ]
      },
      "title": "ruby-grape Gem has XSS via \"format\" parameter",
      "url": "https://github.com/ruby-grape/grape/issues/1762"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c1.1.0",
          "affected_versions": "All versions before 1.1.0",
          "cvss_v2": "AV:N/AC:M/Au:N/C:N/I:P/A:N",
          "cvss_v3": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
          "cwe_ids": [
            "CWE-1035",
            "CWE-79",
            "CWE-937"
          ],
          "date": "2019-10-09",
          "description": "ruby-grape suffers from a cross-site scripting (XSS) vulnerability via `format` parameter.",
          "fixed_versions": [
            "1.1.0"
          ],
          "identifier": "CVE-2018-3769",
          "identifiers": [
            "CVE-2018-3769"
          ],
          "not_impacted": "All versions starting from 1.1.0",
          "package_slug": "gem/grape",
          "pubdate": "2018-07-05",
          "solution": "Upgrade to version 1.1.0 or above.",
          "title": "Cross-site Scripting",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2018-3769"
          ],
          "uuid": "54687d49-afb2-4a6d-81b2-b640435b3aaf"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:ruby-grape:grape:*:*:*:*:*:*:*:*",
                "cpe_name": [],
                "versionEndIncluding": "1.0.3",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "cve-assignments@hackerone.com",
          "ID": "CVE-2018-3769"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "ruby-grape ruby gem suffers from a cross-site scripting (XSS) vulnerability via \"format\" parameter."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-79"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/ruby-grape/grape/pull/1763",
              "refsource": "CONFIRM",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/ruby-grape/grape/pull/1763"
            },
            {
              "name": "https://github.com/ruby-grape/grape/issues/1762",
              "refsource": "CONFIRM",
              "tags": [
                "Exploit",
                "Issue Tracking",
                "Third Party Advisory"
              ],
              "url": "https://github.com/ruby-grape/grape/issues/1762"
            },
            {
              "name": "https://github.com/ruby-grape/grape/commit/6876b71efc7b03f7ce1be3f075eaa4e7e6de19af",
              "refsource": "CONFIRM",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/ruby-grape/grape/commit/6876b71efc7b03f7ce1be3f075eaa4e7e6de19af"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "cvssV2": {
            "accessComplexity": "MEDIUM",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "availabilityImpact": "NONE",
            "baseScore": 4.3,
            "confidentialityImpact": "NONE",
            "integrityImpact": "PARTIAL",
            "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N",
            "version": "2.0"
          },
          "exploitabilityScore": 8.6,
          "impactScore": 2.9,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "MEDIUM",
          "userInteractionRequired": true
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 6.1,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "LOW",
            "integrityImpact": "LOW",
            "privilegesRequired": "NONE",
            "scope": "CHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
            "version": "3.1"
          },
          "exploitabilityScore": 2.8,
          "impactScore": 2.7
        }
      },
      "lastModifiedDate": "2023-02-28T17:54Z",
      "publishedDate": "2018-07-05T16:29Z"
    }
  }
}


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 observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…