Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-7245

Incorrect username validation in the registration process of CTFd v2.0.0 - v2.2.2 allows an attacker to take over an arbitrary account if the username is known and emails are enabled on the CTFd instance. To exploit the vulnerability, one must register with a username identical to the victim's username, but with white space inserted before and/or after the username. This will register the account with the same username as the victim. After initiating a password reset for the new account, CTFd will reset the victim's account password due to the username collision.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-7245
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 11:13 UTC · Revision 1

Source evidence

CVE-2020-7245

core-osv · Original source

Published 23 Jan 2020, 23:15 UTC

Incorrect username validation in the registration process of CTFd v2.0.0 - v2.2.2 allows an attacker to take over an arbitrary account if the username is known and emails are enabled on the CTFd instance. To exploit the vulnerability, one must register with a username identical to the victim's username, but with white space inserted before and/or after the username. This will register the account with the same username as the victim. After initiating a password reset for the new account, CTFd will reset the victim's account password due to the username collision.

osv:CVE-2020-7245
Complete source record
{
  "id": "adffd165633e947565cc7b3302f2894de21bb733b2c43449879fb2b7b2aeeba4",
  "url": "https://osv.dev/vulnerability/CVE-2020-7245",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-7245",
    "summary": "Incorrect username validation in the registration process of CTFd v2.0.0 - v2.2.2 allows an attacker to take over an arbitrary account if the username is known and emails are enabled on the CTFd instance. To exploit the vulnerability, one must register with a username identical to the victim's username, but with white space inserted before and/or after the username. This will register the account with the same username as the victim. After initiating a password reset for the new account, CTFd will reset the victim's account password due to the username collision.",
    "evidence": "osv:CVE-2020-7245",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2020-7245",
      "aliases": [
        "CVE-2020-7245"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ctfd/ctfd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "809e4df4719fa63841ff3f28175f9a09da31963a"
                },
                {
                  "last_affected": "fe85fdf1e5561e9f04c1c80c72e894dcd7ea3ad7"
                },
                {
                  "fixed": "d59bfa3578b0e5ac8dd3570038d123014372a81c"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:ctfd:ctfd:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.0.0"
                      },
                      {
                        "last_affected": "2.2.2"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "d59bfa3578b0e5ac8dd3570038d123014372a81c"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "2.2.3"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.2.2",
            "2.2.1",
            "2.2.0",
            "2.1.5",
            "2.1.4",
            "2.1.3",
            "2.1.2",
            "2.1.1",
            "2.1.0",
            "2.0.6",
            "2.0.5",
            "2.0.4",
            "2.0.3",
            "2.0.2",
            "2.0.1",
            "2.0.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7245.json"
          }
        }
      ],
      "modified": "2026-10-20T10:53:30.398324241Z",
      "provider": "osv",
      "references": [
        "https://github.com/CTFd/CTFd/pull/1218",
        "https://github.com/CTFd/CTFd/releases/tag/2.2.3"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2020-7245",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 384375,
  "published_at": "2020-01-23T23:15:11.597+00:00"
}