Description
Cotonti through 1.0.0 contains an open redirect vulnerability in the cot_url_check() function that validates redirect destinations using a regular expression lacking an end-of-string anchor. Attackers can bypass the redirect guard by supplying hostnames beginning with the site domain to redirect users to attacker-controlled hosts through the ratings plugin or other redirect callers.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Cotonti | Cotonti | ≤ 1.0.0 | — |
References
- https://github.com/Cotonti/Cotonti/issues/1891 issue-tracking
- https://github.com/Cotonti/Cotonti/pull/1899 patch issue-tracking
- https://github.com/Cotonti/Cotonti/blob/1.0.0/system/functions.php technical-description
- https://github.com/Cotonti/Cotonti/blob/1.0.0/plugins/ratings/ratings.ajax.php technical-description
- https://github.com/Cotonti/Cotonti product
- VulnCheck Advisory: Cotonti through 1.0.0 Open Redirect via Unanchored cot_url_check() Regex third-party-advisory