Github Org 2fa Not Enforced
Description
Detects when a GitHub organization does not require two-factor authentication from its members. A single stolen or reused password is then enough to reach the organization's repositories, and the accounts that hold write access are exactly the ones an attacker needs to alter code before it ships.
Detection Strategy
• Requests the organization's settings once per scan and reads whether two-factor authentication is required of members
• Reports a vulnerability when the requirement is disabled
• Leaves the setting unread rather than assumed when the credential is not an organization owner, since GitHub returns null in that case and a missing answer must not be reported as a missing control
Search for vulnerabilities in your apps for free with Fluid Attacks' automated security testing! Start your 21-day free trial and discover the benefits of the Continuous Hacking Essential plan. If you prefer the Advanced plan, which includes the expertise of Fluid Attacks' hacking team, fill out this contact form.