CVE-2021-30185: Indico Indico Tampering With Links (e.g. Vulnerability

HIGH
Advisory Identifier: GHSA-wgpj-7c2j-vfjm
CVSS 7.5
CWE-640
Published
Advisory Summary

CVE-2021-30185 is a HIGH (CVSS 7.5) indico tampering with links (e.g. vulnerability (CWE-640: Weak Password Recovery Mechanism for Forgotten Password) affecting Indico libraries in the PyPI ecosystem. The issue involves indico tampering with links (e.g. password reset) in sent emails. Remediation is available by upgrading affected packages to version 2.3.4.

CVE-2021-30185 at a Glance

CVE Identifier CVE-2021-30185
GHSA Identifier GHSA-wgpj-7c2j-vfjm
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-640: Weak Password Recovery Mechanism for Forgotten Password
Affected Product Indico
Package Ecosystem PyPI
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2021-30185

To remediate this vulnerability, upgrade all affected Indico dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

indico fixed: 2.3.4
pip install indico>=2.3.4
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

pip show indico

How to Check if You Are Affected

To determine whether your Python environment is affected by CVE-2021-30185, inspect your installed packages using pip:

pip show indico

Analyze the terminal output to locate any version of Indico in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.3.4), your application is affected.

Note: The pip show indico command checks currently installed packages in your active Python environment.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-640: Weak Password Recovery Mechanism for Forgotten Password, where the product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak. In Indico, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact An external audit of the Indico codebase has discovered a vulnerability in Indico's URL generation logic which could have allowed an attacker to make Indico send a password reset link with a valid token pointing to an attacker-controlled domain by sending that domain in the `Host` header. Had a user clicked such a link without realizing it does not point to Indico (and that they never requested it), it would have revealed their password reset token to the attacker, allowing them to reset the password for that user and thus take over their Indico account. - If the web server already enforces a canonical host name, this cannot be exploited (this was not part of the default config from the Indico setup guide) - If only SSO is used ([`LOCAL_IDENTITIES`](https://docs.getindico.io/en/stable/config/settings/#LOCAL_IDENTITIES) set to `False`), the vulnerability cannot be exploited for password reset links, but other links in emails set by Indico could be tampered with in the same way (with less problematic impact though) ### Patches You need to update to [Indico 2.3.4](https://github.com/indico/indico/releases/tag/v2.3.4) as soon as possible. See [the docs](https://docs.getindico.io/en/stable/installation/upgrade/) for instructions on how to update. ### Workarounds You can configure the web server to canonicalize the URL to the hostname used for Indico. See [this commit](https://github.com/indico/indico/pull/4815/commits/b6bff6d004abcf07db1891e26a0eb4aa0edb7c21) for the changes in our setup docs; they can be easily applied to your existing web server config. ### For more information If you have any questions or comments about this advisory: - Open a thread in [our forum](https://talk.getindico.io/) - Email us privately at indico-team@cern.ch

CVE-2021-30185 Affected Indico Versions

1 component(s)
Fixed Versions:
2.3.4
Product / Package Ecosystem Affected Versions Fixed Version
indico
PyPI
< 2.3.4
2.3.4

References

Frequently Asked Questions

What is CVE-2021-30185?
CVE-2021-30185 is a security vulnerability in Indico involving Indico Tampering with links (e.g. password reset) in sent emails under CWE-640: Weak Password Recovery Mechanism for Forgotten Password.
Which Indico versions are affected?
Affected versions include releases prior to 2.3.4 across affected packages: indico.
What version fixes CVE-2021-30185?
Upgrading to 2.3.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is indico affected?
Yes, indico is affected in releases prior to 2.3.4. Upgrade your dependency to 2.3.4 or later.
What is the CVSS score of CVE-2021-30185?
CVE-2021-30185 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2021-30185?
CVE-2021-30185 is classified under CWE-640: Weak Password Recovery Mechanism for Forgotten Password (The product contains a mechanism for users to recover or change their passwords without knowing the original password, but the mechanism is weak.).
How can I check PyPI dependencies for CVE-2021-30185?
Run the dependency tree command: 'pip show indico'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-wgpj-7c2j-vfjm",
  "modified" : "2024-09-23T16:09:57Z",
  "published" : "2021-04-08T16:33:38Z",
  "aliases" : [ "CVE-2021-30185" ],
  "summary" : "Indico Tampering with links (e.g. password reset) in sent emails",
  "details" : "### Impact\nAn external audit of the Indico codebase has discovered a vulnerability in Indico's URL generation logic which could have allowed an attacker to make Indico send a password reset link with a valid token pointing to an attacker-controlled domain by sending that domain in the `Host` header. Had a user clicked such a link without realizing it does not point to Indico (and that they never requested it), it would have revealed their password reset token to the attacker, allowing them to reset the password for that user and thus take over their Indico account.\n\n- If the web server already enforces a canonical host name, this cannot be exploited (this was not part of the default config from the Indico setup guide)\n- If only SSO is used ([`LOCAL_IDENTITIES`](https://docs.getindico.io/en/stable/config/settings/#LOCAL_IDENTITIES) set to `False`), the vulnerability cannot be exploited for password reset links, but other links in emails set by Indico could be tampered with in the same way (with less problematic impact though)\n\n### Patches\nYou need to update to [Indico 2.3.4](https://github.com/indico/indico/releases/tag/v2.3.4) as soon as possible.\nSee [the docs](https://docs.getindico.io/en/stable/installation/upgrade/) for instructions on how to update.\n\n### Workarounds\nYou can configure the web server to canonicalize the URL to the hostname used for Indico. See [this commit](https://github.com/indico/indico/pull/4815/commits/b6bff6d004abcf07db1891e26a0eb4aa0edb7c21) for the changes in our setup docs; they can be easily applied to your existing web server config.\n\n### For more information\nIf you have any questions or comments about this advisory:\n\n- Open a thread in [our forum](https://talk.getindico.io/)\n- Email us privately at indico-team@cern.ch",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "PyPI",
      "name" : "indico"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.3.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/indico/indico/security/advisories/GHSA-wgpj-7c2j-vfjm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2021-30185"
  }, {
    "type" : "ADVISORY",
    "url" : "https://github.com/advisories/GHSA-wgpj-7c2j-vfjm"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/indico/indico/releases/tag/v2.3.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/pypa/advisory-database/tree/main/vulns/indico/PYSEC-2021-18.yaml"
  }, {
    "type" : "WEB",
    "url" : "https://www.shorebreaksecurity.com/blog"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-640" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-04-08T16:33:24Z",
    "nvd_published_at" : "2021-04-07T14:15:00Z"
  }
}