Advisory

GHSA-8v23-w4w5-w83c

Also known as: BIT-moodle-2022-45149, CVE-2022-45149

Summary

Cross-Site Request Forgery in Moodle

Details

A vulnerability was found in Moodle which exists due to insufficient validation of the HTTP request origin in course redirect URL. A user's CSRF token was unnecessarily included in the URL when being redirected to a course they have just restored. A remote attacker can trick the victim to visit a specially crafted web page and perform arbitrary actions on behalf of the victim on the vulnerable website. This flaw allows an attacker to perform cross-site request forgery attacks.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-11-23 15:30 UTC
Modified
2024-02-18 05:29 UTC

Affected packages and fixes

moodle/moodle

Packagist · All systems

Affected

  • introduced 3.9.0, fixed 3.9.18 (ecosystem)

Fixed versions

3.9.18

Fix

The export has no generic command for this ecosystem.

moodle/moodle

Packagist · All systems

Affected

  • introduced 3.11.0, fixed 3.11.11 (ecosystem)

Fixed versions

3.11.11

Fix

The export has no generic command for this ecosystem.

moodle/moodle

Packagist · All systems

Affected

  • introduced 4.0.0, fixed 4.0.5 (ecosystem)

Fixed versions

4.0.5

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