Advisory

GHSA-w542-cpp9-r3g7

Also known as: CVE-2020-16252

Summary

Field Test CSRF vulnerability

Details

The Field Test dashboard is vulnerable to cross-site request forgery (CSRF) with non-session based authentication methods in versions v0.2.0 through v0.3.2.

Impact
The Field Test dashboard is vulnerable to CSRF 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, a single endpoint is affected, which allows for changing the variant assigned to a user.

All users running an affected release should upgrade immediately.

Technical Details
Field Test 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. This has been changed to protect_from_forgery with: :exception.

Severity

Medium Basis: The source's own band: MODERATE

Dates

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

Affected packages and fixes

field_test

RubyGems · All systems

Affected

  • introduced 0.2.0, fixed 0.4.0 (ecosystem)

Fixed versions

0.4.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