{"answers":{"affected":"3 open source packages ship an affected version, including wagtail-2fa. It affects 1 product.","exploited":"There is no known exploitation of CVE-2020-5240 in the wild and no public exploit code.","fix":"Upgrade wagtail-2fa to 1.4.1 or later.","what":"CVE-2020-5240 is a high-severity missing authorization vulnerability in Lab Digital wagtail-2fa, published on 13 Mar 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2020-5240 and fix it if it is affected.\n\nWhat it is: CVE-2020-5240 is a high-severity missing authorization vulnerability in Lab Digital wagtail-2fa, published on 13 Mar 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2020-5240 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- wagtail-2fa (PyPI): affected all versions; fixed in 1.4.1\n- wagtail-2fa (PyPI): affected all versions; fixed in 1.4.1\n- wagtail-2fa (PyPI): affected all versions; fixed in 1.4.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-5240/ (Markdown: https://insights.sbomify.com/CVE-2020-5240/index.md)","id":"CVE-2020-5240","markdown":"https://insights.sbomify.com/CVE-2020-5240/index.md","name":"CVE-2020-5240","record":{"aliases":["GHSA-9gjv-6qq6-v7qm","PYSEC-2020-219"],"analysis":{"component_type":"cms_plugin","fix_type":"upgrade","impacts":["security_bypass","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Wagtail 2FA plugin","requires_auth":"low_privilege","summary":"Attackers can delete other users' 2FA devices without permission, potentially enabling account takeover if passwords are known.","user_interaction":"required","vuln_class":"missing_authorization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"wagtail-2fa","vendor":"labdigital"}],"cvss":{"score":7.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-863","name":"Incorrect Authorization"},{"id":"CWE-285","name":"Improper Authorization"}],"description":"In wagtail-2fa before 1.4.1, any user with access to the CMS can view and delete other users 2FA devices by going to the correct path. The user does not require special permissions in order to do so. By deleting the other users device they can disable the target users 2FA devices and potentially compromise the account if they figure out their password. The problem has been patched in version 1.4.1.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"2FA bypass through deleting devices in wagtail-2fa","id":"CVE-2020-5240","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"missing_authorization","year":"2020"},"n_packages":3,"n_references":2,"next":{"headline":"XSS/Script injection vulnerability in matestack","id":"CVE-2020-5241"},"packages":[{"ecosystem":"PyPI","fixed":["1.4.1"],"introduced":["0"],"last_affected":[],"package":"wagtail-2fa","purl":null,"source":"GHSA-9gjv-6qq6-v7qm"},{"ecosystem":"PyPI","fixed":["1.4.1"],"introduced":["0"],"last_affected":[],"package":"wagtail-2fa","purl":"pkg:pypi/wagtail-2fa","source":"GHSA-9gjv-6qq6-v7qm"},{"ecosystem":"PyPI","fixed":["1.4.1"],"introduced":["0"],"last_affected":[],"package":"wagtail-2fa","purl":"pkg:pypi/wagtail-2fa","source":"PYSEC-2020-219"}],"prev":{"headline":"Unspecified vulnerability in the fetchmail script in Mailu","id":"CVE-2020-5239"},"products":["wagtail-2fa"],"published":"2020-03-13","related":[{"cvss_score":8.7,"headline":"2FA bypass in Wagtail through new device path","id":"CVE-2019-16766","kev_date_added":null,"published":"2019-11-29"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["Lab Digital"]},"summary":"Attackers can delete other users' 2FA devices without permission, potentially enabling account takeover if passwords are known.","url":"https://insights.sbomify.com/CVE-2020-5240/"}