GSD-2020-16253

Vulnerability from gsd - Updated: 2020-08-04 00:00
Details
The PgHero dashboard is vulnerable to CSRF with non-session based authentication methods. ## Impact The PgHero dashboard is vulnerable to cross-site request forgery (CSRF). This affects the Docker image, Linux packages, and in specific cases, the Ruby gem. The Ruby gem is vulnerable with non-session based authentication methods like basic authentication - session-based authentication methods (like Devise's default authentication) are not affected. A CSRF attack works by getting an authorized user to visit a malicious website and then performing requests on behalf of the user. In this instance, actions include: 1. Canceling running queries 2. Running `EXPLAIN` on queries (without seeing the results, but can be used for denial of service and other attacks) 3. Resetting query stats (running `pg_stat_statements_reset()`)
Aliases

{
  "GSD": {
    "alias": "CVE-2020-16253",
    "description": "The PgHero gem through 2.6.0 for Ruby allows CSRF.",
    "id": "GSD-2020-16253"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "pghero",
            "purl": "pkg:gem/pghero"
          }
        }
      ],
      "aliases": [
        "CVE-2020-16253",
        "GHSA-v6fx-752r-ccp2"
      ],
      "details": "The PgHero dashboard is vulnerable to CSRF with non-session based authentication methods.\n\n## Impact\nThe PgHero dashboard is vulnerable to cross-site request forgery (CSRF). This affects the Docker\nimage, Linux packages, and in specific cases, the Ruby gem. The Ruby gem is vulnerable with\nnon-session based authentication methods like basic authentication - session-based authentication\nmethods (like Devise\u0027s default authentication) are not affected.\n\nA CSRF attack works by getting an authorized user to visit a malicious website and then performing\nrequests on behalf of the user. In this instance, actions include:\n\n1. Canceling running queries\n2. Running `EXPLAIN` on queries (without seeing the results, but can be used for denial of service\n   and other attacks)\n3. Resetting query stats (running `pg_stat_statements_reset()`)\n",
      "id": "GSD-2020-16253",
      "modified": "2020-08-04T00:00:00.000Z",
      "published": "2020-08-04T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/ankane/pghero/issues/330"
        }
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 8.1,
          "type": "CVSS_V3"
        }
      ],
      "summary": "CSRF Vulnerability with Non-Session Based Authentication"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "cve@mitre.org",
        "ID": "CVE-2020-16253",
        "STATE": "PUBLIC"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "n/a",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "n/a"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "n/a"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "The PgHero gem through 2.6.0 for Ruby allows CSRF."
          }
        ]
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "n/a"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/ankane/pghero/",
            "refsource": "MISC",
            "url": "https://github.com/ankane/pghero/"
          },
          {
            "name": "https://github.com/ankane/pghero/issues/330",
            "refsource": "MISC",
            "url": "https://github.com/ankane/pghero/issues/330"
          }
        ]
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2020-16253",
      "cvss_v3": 8.1,
      "date": "2020-08-04",
      "description": "The PgHero dashboard is vulnerable to CSRF with non-session based authentication methods.\n\n## Impact\nThe PgHero dashboard is vulnerable to cross-site request forgery (CSRF). This affects the Docker\nimage, Linux packages, and in specific cases, the Ruby gem. The Ruby gem is vulnerable with\nnon-session based authentication methods like basic authentication - session-based authentication\nmethods (like Devise\u0027s default authentication) are not affected.\n\nA CSRF attack works by getting an authorized user to visit a malicious website and then performing\nrequests on behalf of the user. In this instance, actions include:\n\n1. Canceling running queries\n2. Running `EXPLAIN` on queries (without seeing the results, but can be used for denial of service\n   and other attacks)\n3. Resetting query stats (running `pg_stat_statements_reset()`)\n",
      "gem": "pghero",
      "ghsa": "v6fx-752r-ccp2",
      "patched_versions": [
        "\u003e= 2.7.0"
      ],
      "title": "CSRF Vulnerability with Non-Session Based Authentication",
      "url": "https://github.com/ankane/pghero/issues/330"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c=2.6.0",
          "affected_versions": "All versions up to 2.6.0",
          "cvss_v2": "AV:N/AC:M/Au:N/C:N/I:P/A:P",
          "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H",
          "cwe_ids": [
            "CWE-1035",
            "CWE-352",
            "CWE-937"
          ],
          "date": "2020-08-05",
          "description": "The PgHero gem allows CSRF.",
          "fixed_versions": [
            "2.7.0"
          ],
          "identifier": "CVE-2020-16253",
          "identifiers": [
            "CVE-2020-16253"
          ],
          "not_impacted": "All versions after 2.6.0",
          "package_slug": "gem/pghero",
          "pubdate": "2020-08-05",
          "solution": "Upgrade to version 2.7.0 or above.",
          "title": "Cross-Site Request Forgery (CSRF)",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2020-16253"
          ],
          "uuid": "05ae9628-f329-4e58-9f63-2a299d9158d7"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:pghero_project:pghero:*:*:*:*:*:ruby:*:*",
                "cpe_name": [],
                "versionEndIncluding": "2.6.0",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "cve@mitre.org",
          "ID": "CVE-2020-16253"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "The PgHero gem through 2.6.0 for Ruby allows CSRF."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-352"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/ankane/pghero/",
              "refsource": "MISC",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/ankane/pghero/"
            },
            {
              "name": "https://github.com/ankane/pghero/issues/330",
              "refsource": "MISC",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/ankane/pghero/issues/330"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "acInsufInfo": false,
          "cvssV2": {
            "accessComplexity": "MEDIUM",
            "accessVector": "NETWORK",
            "authentication": "NONE",
            "availabilityImpact": "PARTIAL",
            "baseScore": 5.8,
            "confidentialityImpact": "NONE",
            "integrityImpact": "PARTIAL",
            "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:P",
            "version": "2.0"
          },
          "exploitabilityScore": 8.6,
          "impactScore": 4.9,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "MEDIUM",
          "userInteractionRequired": true
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 8.1,
            "baseSeverity": "HIGH",
            "confidentialityImpact": "NONE",
            "integrityImpact": "HIGH",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "REQUIRED",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H",
            "version": "3.1"
          },
          "exploitabilityScore": 2.8,
          "impactScore": 5.2
        }
      },
      "lastModifiedDate": "2020-08-05T15:35Z",
      "publishedDate": "2020-08-05T14:15Z"
    }
  }
}


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…