{"id":"GHSA-v6fx-752r-ccp2","summary":"PgHero gem allows CSRF","details":"The PgHero gem through 2.6.0 for Ruby allows CSRF. PgHero normally uses the `protect_from_forgery` method from Rails to prevent CSRF. However, this defaults to `:null_session`, which has no effect on non-session based authentication methods. Thus the ruby gem is vulnerable with non-session based authentication methods like basic authentication.","aliases":["CVE-2020-16253"],"modified":"2024-02-16T08:23:18.681389Z","published":"2020-08-05T14:53:43Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2020-08-05T14:51:45Z","nvd_published_at":null,"cwe_ids":["CWE-352"],"severity":"HIGH"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-16253"},{"type":"WEB","url":"https://github.com/ankane/pghero/issues/330"},{"type":"WEB","url":"https://github.com/ankane/pghero/commit/14b67b32fed19a30aaf9826ee72f2a29cda604e9"},{"type":"PACKAGE","url":"https://github.com/ankane/pghero"},{"type":"WEB","url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/pghero/CVE-2020-16253.yml"}],"affected":[{"package":{"name":"pghero","ecosystem":"RubyGems","purl":"pkg:gem/pghero"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.0"}]}],"versions":["0.0.1","0.0.2","0.0.3","0.1.0","0.1.1","0.1.10","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.1.7","0.1.8","0.1.9","1.0.0","1.0.1","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.4.2","1.5.0","1.5.1","1.5.2","1.5.3","1.6.0","1.6.1","1.6.2","1.6.3","1.6.4","1.6.5","1.7.0","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.1.0","2.1.1","2.2.0","2.2.1","2.3.0","2.4.0","2.4.1","2.4.2","2.5.0","2.5.1","2.6.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/08/GHSA-v6fx-752r-ccp2/GHSA-v6fx-752r-ccp2.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:H"}]}