GSD-2021-43177

Vulnerability from gsd - Updated: 2022-04-07 00:00
Details
### Impact As a result of an incomplete fix for CVE-2015-7225, in versions of devise-two-factor prior to 4.0.2 it is possible to reuse a One-Time-Password (OTP) for one (and only one) immediately trailing interval. ### Patches This vulnerability has been patched in version 4.0.2 which was released on March 24th, 2022. Individuals using this package are strongly encouraged to upgrade as soon as possible.
Aliases

{
  "GSD": {
    "alias": "CVE-2021-43177",
    "description": "As a result of an incomplete fix for CVE-2015-7225, in versions of devise-two-factor prior to 4.0.2 it is possible to reuse a One-Time-Password (OTP) for one (and only one) immediately trailing interval. CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N)",
    "id": "GSD-2021-43177"
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "affected": [
        {
          "package": {
            "ecosystem": "RubyGems",
            "name": "devise-two-factor",
            "purl": "pkg:gem/devise-two-factor"
          }
        }
      ],
      "aliases": [
        "CVE-2021-43177",
        "GHSA-jm35-h8q2-73mp"
      ],
      "details": "### Impact\n\nAs a result of an incomplete fix for CVE-2015-7225, in versions of\ndevise-two-factor prior to 4.0.2 it is possible to reuse a One-Time-Password\n(OTP) for one (and only one) immediately trailing interval.\n\n### Patches\n\nThis vulnerability has been patched in version 4.0.2 which was released on\nMarch 24th, 2022. Individuals using this package are strongly encouraged to\nupgrade as soon as possible.\n",
      "id": "GSD-2021-43177",
      "modified": "2022-04-07T00:00:00.000Z",
      "published": "2022-04-07T00:00:00.000Z",
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mp"
        },
        {
          "type": "WEB",
          "url": "https://github.com/tinfoil/devise-two-factor/issues/106"
        }
      ],
      "related": [
        "CVE-2015-7225"
      ],
      "schema_version": "1.4.0",
      "severity": [
        {
          "score": 5.3,
          "type": "CVSS_V3"
        }
      ],
      "summary": "Improper one time password handling in devise-two-factor"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "disclosure@synopsys.com",
        "ID": "CVE-2021-43177",
        "STATE": "PUBLIC"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "devise-two-factor",
                    "version": {
                      "version_data": [
                        {
                          "version_value": "\u003c 4.0.2"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "Tinfoil"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "As a result of an incomplete fix for CVE-2015-7225, in versions of devise-two-factor prior to 4.0.2 it is possible to reuse a One-Time-Password (OTP) for one (and only one) immediately trailing interval. CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N)"
          }
        ]
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "CWE-254: 7PK - Security Features"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mp",
            "refsource": "MISC",
            "url": "https://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mp"
          }
        ]
      }
    },
    "github.com/rubysec/ruby-advisory-db": {
      "cve": "2021-43177",
      "cvss_v3": 5.3,
      "date": "2022-04-07",
      "description": "### Impact\n\nAs a result of an incomplete fix for CVE-2015-7225, in versions of\ndevise-two-factor prior to 4.0.2 it is possible to reuse a One-Time-Password\n(OTP) for one (and only one) immediately trailing interval.\n\n### Patches\n\nThis vulnerability has been patched in version 4.0.2 which was released on\nMarch 24th, 2022. Individuals using this package are strongly encouraged to\nupgrade as soon as possible.\n",
      "gem": "devise-two-factor",
      "ghsa": "jm35-h8q2-73mp",
      "patched_versions": [
        "\u003e= 4.0.2"
      ],
      "related": {
        "cve": [
          "2015-7225"
        ],
        "url": [
          "https://github.com/tinfoil/devise-two-factor/issues/106"
        ]
      },
      "title": "Improper one time password handling in devise-two-factor",
      "url": "https://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mp"
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003c4.0.2",
          "affected_versions": "All versions before 4.0.2",
          "cvss_v2": "AV:N/AC:M/Au:S/C:P/I:N/A:N",
          "cvss_v3": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N",
          "cwe_ids": [
            "CWE-1035",
            "CWE-937"
          ],
          "date": "2022-04-18",
          "description": "As a result of an incomplete fix for CVE-2015-7225, in versions of devise-two-factor prior to 4.0.2 it is possible to reuse a One-Time-Password (OTP) for one (and only one) immediately trailing interval. CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N)",
          "fixed_versions": [
            "4.0.2"
          ],
          "identifier": "CVE-2021-43177",
          "identifiers": [
            "CVE-2021-43177",
            "GHSA-jm35-h8q2-73mp"
          ],
          "not_impacted": "All versions starting from 4.0.2",
          "package_slug": "gem/devise-two-factor",
          "pubdate": "2022-04-11",
          "solution": "Upgrade to version 4.0.2 or above.",
          "title": "Improper one time password handling in devise-two-factor",
          "urls": [
            "https://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mp",
            "https://github.com/tinfoil/devise-two-factor/issues/106",
            "https://github.com/advisories/GHSA-jm35-h8q2-73mp"
          ],
          "uuid": "dc51b148-1b30-454d-8815-d618b58a41c1"
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:tinfoilsecurity:devise-two-factor:*:*:*:*:*:*:*:*",
                "cpe_name": [],
                "versionEndExcluding": "4.0.2",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "disclosure@synopsys.com",
          "ID": "CVE-2021-43177"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "As a result of an incomplete fix for CVE-2015-7225, in versions of devise-two-factor prior to 4.0.2 it is possible to reuse a One-Time-Password (OTP) for one (and only one) immediately trailing interval. CVSS Vector: (CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N)"
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "NVD-CWE-noinfo"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mp",
              "refsource": "MISC",
              "tags": [
                "Third Party Advisory"
              ],
              "url": "https://github.com/tinfoil/devise-two-factor/security/advisories/GHSA-jm35-h8q2-73mp"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV2": {
          "acInsufInfo": false,
          "cvssV2": {
            "accessComplexity": "MEDIUM",
            "accessVector": "NETWORK",
            "authentication": "SINGLE",
            "availabilityImpact": "NONE",
            "baseScore": 3.5,
            "confidentialityImpact": "PARTIAL",
            "integrityImpact": "NONE",
            "vectorString": "AV:N/AC:M/Au:S/C:P/I:N/A:N",
            "version": "2.0"
          },
          "exploitabilityScore": 6.8,
          "impactScore": 2.9,
          "obtainAllPrivilege": false,
          "obtainOtherPrivilege": false,
          "obtainUserPrivilege": false,
          "severity": "LOW",
          "userInteractionRequired": false
        },
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "HIGH",
            "attackVector": "NETWORK",
            "availabilityImpact": "NONE",
            "baseScore": 5.3,
            "baseSeverity": "MEDIUM",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "NONE",
            "privilegesRequired": "LOW",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N",
            "version": "3.1"
          },
          "exploitabilityScore": 1.6,
          "impactScore": 3.6
        }
      },
      "lastModifiedDate": "2022-04-18T13:29Z",
      "publishedDate": "2022-04-11T20:15Z"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…