Advisory

GHSA-v6fx-752r-ccp2

Also known as: CVE-2020-16253

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-08-05 14:53 UTC
Modified
2024-02-16 08:23 UTC

Affected packages and fixes

pghero

RubyGems · All systems

Affected

  • introduced 0, fixed 2.7.0 (ecosystem)

Fixed versions

2.7.0

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences