CVE-2021-22874:Reflected XSS vulnerability in Revive Adserver before 5.1.1 via the period_preset parameter in userlog-index.php.

splash
Back

Description Preview

Revive Adserver versions prior to 5.1.1 contain a reflected cross-site scripting (XSS) vulnerability in the userlog-index.php file. The vulnerability exists because the application fails to properly sanitize user input from the 'period_preset' parameter before reflecting it back in the response. This allows attackers to inject malicious JavaScript code that executes in victims' browsers when they access a specially crafted URL, potentially leading to session hijacking, credential theft, or other client-side attacks.

Overview

This vulnerability (CVE-2021-22874) is a reflected XSS issue (CWE-79) affecting Revive Adserver, an open-source advertising server. The vulnerability is present in the userlog-index.php file, specifically in how it handles the 'period_preset' parameter. When exploited, an attacker can craft a malicious URL containing JavaScript code in the period_preset parameter that will execute in the victim's browser context when they visit the URL. This can lead to unauthorized access to sensitive information, cookie theft, session hijacking, or further malicious actions performed on behalf of the victim user.

Remediation

To remediate this vulnerability, administrators should:

  1. Update Revive Adserver to version 5.1.1 or later, which contains the security fix.
  2. If immediate updating is not possible, implement additional input validation and output encoding mechanisms for the affected parameter.
  3. Consider implementing Content Security Policy (CSP) headers to help mitigate the impact of any XSS vulnerabilities.
  4. Review server logs for any suspicious activity that might indicate exploitation attempts.
  5. Educate users about the risks of clicking on unknown or suspicious links, especially those with unusual parameters.

References

  1. Patch information: https://github.com/revive-adserver/revive-adserver/commit/e2a67ce8
  2. Vulnerability report: https://hackerone.com/reports/1083231
  3. Vendor advisory: https://www.revive-adserver.com/security/revive-sa-2021-002/
  4. CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Industry ExposureMost to least
This section illustrates the prevalence of a specific Common Vulnerabilities and Exposures (CVE) across various industries based on customer reports. The ranking displays industries from the most to least affected by this particular vulnerability, offering valuable insight into where this CVE has been most frequently observed. This information can help organizations within these sectors prioritize their security efforts, understand their relative risk exposure compared to their peers, and focus remediation strategies where they are most needed. By understanding the industry-specific impact, organizations can make more informed decisions regarding patching, resource allocation, and overall risk management related to this CVE.

  1. Accommodation & Food Services
    Accommodation & Food Services
  2. Administrative, Support, Waste Management & Remediation Services
    Administrative, Support, Waste Management & Remediation Services
  3. Agriculture, Forestry Fishing & Hunting
    Agriculture, Forestry Fishing & Hunting
  4. Arts, Entertainment & Recreation
    Arts, Entertainment & Recreation
  5. Construction
    Construction
  6. Educational Services
    Educational Services
  7. Finance and Insurance
    Finance and Insurance
  8. Health Care & Social Assistance
    Health Care & Social Assistance
  9. Information
    Information
  10. Management of Companies & Enterprises
    Management of Companies & Enterprises
  11. Manufacturing
    Manufacturing
  12. Mining
    Mining
  13. Other Services (except Public Administration)
    Other Services (except Public Administration)
  14. Professional, Scientific, & Technical Services
    Professional, Scientific, & Technical Services
  15. Public Administration
    Public Administration
  16. Real Estate Rental & Leasing
    Real Estate Rental & Leasing
  17. Retail Trade
    Retail Trade
  18. Transportation & Warehousing
    Transportation & Warehousing
  19. Utilities
    Utilities
  20. Wholesale Trade
    Wholesale Trade

Focus on What Matters

  1. See Everything.
  2. Identify True Risk.
  3. Proactively Mitigate Threats.

Let's talk!

background
Armis Vulnerability Intelligence Database