Description
The WP Pro Real Estate 7 WordPress theme before 3.1.1 did not properly sanitise the ct_community parameter in its search listing page before outputting it back in it, leading to a reflected Cross-Site Scripting which can be triggered in both unauthenticated or authenticated user context
Affected Software
Related
{"id": "CVE-2021-24387", "vendorId": null, "type": "cve", "bulletinFamily": "NVD", "title": "CVE-2021-24387", "description": "The WP Pro Real Estate 7 WordPress theme before 3.1.1 did not properly sanitise the ct_community parameter in its search listing page before outputting it back in it, leading to a reflected Cross-Site Scripting which can be triggered in both unauthenticated or authenticated user context", "published": "2021-07-06T11:15:00", "modified": "2021-07-09T14:11:00", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}, "cvss2": {"cvssV2": {"version": "2.0", "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "accessVector": "NETWORK", "accessComplexity": "MEDIUM", "authentication": "NONE", "confidentialityImpact": "NONE", "integrityImpact": "PARTIAL", "availabilityImpact": "NONE", "baseScore": 4.3}, "severity": "MEDIUM", "exploitabilityScore": 8.6, "impactScore": 2.9, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": true}, "cvss3": {"cvssV3": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE", "baseScore": 6.1, "baseSeverity": "MEDIUM"}, "exploitabilityScore": 2.8, "impactScore": 2.7}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-24387", "reporter": "contact@wpscan.com", "references": ["https://wpscan.com/vulnerability/27264f30-71d5-4d2b-8f36-4009a2be6745", "https://contempothemes.com/wp-real-estate-7/changelog/"], "cvelist": ["CVE-2021-24387"], "immutableFields": [], "lastseen": "2022-03-23T14:53:43", "viewCount": 18, "enchantments": {"dependencies": {"references": [{"type": "wpexploit", "idList": ["WPEX-ID:27264F30-71D5-4D2B-8F36-4009A2BE6745"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:27264F30-71D5-4D2B-8F36-4009A2BE6745"]}], "rev": 4}, "score": {"value": 1.0, "vector": "NONE"}, "backreferences": {"references": [{"type": "wpexploit", "idList": ["WPEX-ID:27264F30-71D5-4D2B-8F36-4009A2BE6745"]}, {"type": "wpvulndb", "idList": ["WPVDB-ID:27264F30-71D5-4D2B-8F36-4009A2BE6745"]}]}, "exploitation": null, "vulnersScore": 1.0}, "_state": {"dependencies": 0}, "_internal": {}, "cna_cvss": {"cna": null, "cvss": {}}, "cpe": [], "cpe23": [], "cwe": ["CWE-79"], "affectedSoftware": [{"cpeName": "contempothemes:real_estate_7", "version": "3.1.1", "operator": "lt", "name": "contempothemes real estate 7"}], "affectedConfiguration": [], "cpeConfiguration": {"CVE_data_version": "4.0", "nodes": [{"operator": "OR", "children": [], "cpe_match": [{"vulnerable": true, "cpe23Uri": "cpe:2.3:a:contempothemes:real_estate_7:3.1.1:*:*:*:*:wordpress:*:*", "versionEndExcluding": "3.1.1", "cpe_name": []}]}]}, "extraReferences": [{"url": "https://wpscan.com/vulnerability/27264f30-71d5-4d2b-8f36-4009a2be6745", "name": "https://wpscan.com/vulnerability/27264f30-71d5-4d2b-8f36-4009a2be6745", "refsource": "CONFIRM", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://contempothemes.com/wp-real-estate-7/changelog/", "name": "https://contempothemes.com/wp-real-estate-7/changelog/", "refsource": "MISC", "tags": ["Release Notes", "Vendor Advisory"]}]}
{"wpvulndb": [{"lastseen": "2021-09-14T23:12:01", "description": "The theme did not properly sanitise the ct_community parameter in its search listing page before outputting it back in it, leading to a reflected Cross-Site Scripting which can be triggered in both unauthenticated or authenticated user context\n\n### PoC\n\nhttps://example.com/?ct_mobile_keyword&ct;_keyword&ct;_city&ct;_zipcode&search-listings;=true&ct;_price_from&ct;_price_to&ct;_beds_plus&ct;_baths_plus&ct;_sqft_from&ct;_sqft_to&ct;_lotsize_from&ct;_lotsize_to&ct;_year_from&ct;_year_to&ct;_community=%3Cscript%3Ealert(document.domain);%3C/script%3E&ct;_mls=&ct;_brokerage=0&lat;&lng;\n", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "baseScore": 6.1, "privilegesRequired": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "userInteraction": "REQUIRED", "version": "3.1"}, "impactScore": 2.7}, "published": "2021-06-10T00:00:00", "type": "wpvulndb", "title": "Real Estate 7 < 3.1.1 - Reflected Cross-Site Scripting (XSS)", "bulletinFamily": "software", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 4.3, "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "acInsufInfo": false, "impactScore": 2.9, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-24387"], "modified": "2021-06-17T07:01:39", "id": "WPVDB-ID:27264F30-71D5-4D2B-8F36-4009A2BE6745", "href": "https://wpscan.com/vulnerability/27264f30-71d5-4d2b-8f36-4009a2be6745", "sourceData": "", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}}], "wpexploit": [{"lastseen": "2021-09-14T23:12:01", "description": "The theme did not properly sanitise the ct_community parameter in its search listing page before outputting it back in it, leading to a reflected Cross-Site Scripting which can be triggered in both unauthenticated or authenticated user context\n", "cvss3": {"exploitabilityScore": 2.8, "cvssV3": {"baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "attackComplexity": "LOW", "scope": "CHANGED", "attackVector": "NETWORK", "availabilityImpact": "NONE", "integrityImpact": "LOW", "baseScore": 6.1, "privilegesRequired": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "userInteraction": "REQUIRED", "version": "3.1"}, "impactScore": 2.7}, "published": "2021-06-10T00:00:00", "type": "wpexploit", "title": "Real Estate 7 < 3.1.1 - Reflected Cross-Site Scripting (XSS)", "bulletinFamily": "exploit", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "NONE", "availabilityImpact": "NONE", "integrityImpact": "PARTIAL", "baseScore": 4.3, "vectorString": "AV:N/AC:M/Au:N/C:N/I:P/A:N", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "acInsufInfo": false, "impactScore": 2.9, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-24387"], "modified": "2021-06-17T07:01:39", "id": "WPEX-ID:27264F30-71D5-4D2B-8F36-4009A2BE6745", "href": "", "sourceData": "https://example.com/?ct_mobile_keyword&ct_keyword&ct_city&ct_zipcode&search-listings=true&ct_price_from&ct_price_to&ct_beds_plus&ct_baths_plus&ct_sqft_from&ct_sqft_to&ct_lotsize_from&ct_lotsize_to&ct_year_from&ct_year_to&ct_community=%3Cscript%3Ealert(document.domain);%3C/script%3E&ct_mls=&ct_brokerage=0&lat&lng", "cvss": {"score": 4.3, "vector": "AV:N/AC:M/Au:N/C:N/I:P/A:N"}}]}