Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acunetix - Cross-site Scripting #10

Open
goestin820 opened this issue Mar 5, 2024 · 0 comments
Open

Acunetix - Cross-site Scripting #10

goestin820 opened this issue Mar 5, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@goestin820
Copy link
Owner

Target URLhttp://testphp.vulnweb.com
Target Descriptiontest
SeverityHigh

Affects

http://testphp.vulnweb.com/guestbook.php

Attack Details

URL encoded POST input name was set to anonymous user'"()&%<zzz><ScRiPt >5zAJ(9108)</ScRiPt>

HTTP Request

POST /guestbook.php HTTP/1.1
Acunetix-Aspect: enabled
Acunetix-Aspect-Password: 082119f75623eb7abd7bf357698ff66c
Acunetix-Aspect-ScanID: 8869956492605776042
Content-Type: application/x-www-form-urlencoded
Referer: http://testphp.vulnweb.com/
Content-Length: 96
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip,deflate,br
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Host: testphp.vulnweb.com
Connection: Keep-alive
name=anonymous%20user'"()%26%255zAJ(9108)</ScRiPt>&submit=add%20message&text=555

Vulnerability Description

Cross-site Scripting (XSS) refers to client-side code injection attack wherein an attacker can execute malicious scripts into a legitimate website or web application. XSS occurs when a web application makes use of unvalidated or unencoded user input within the output it generates.

Impact

Malicious JavaScript has access to all the same objects as the rest of the web page, including access to cookies and local storage, which are often used to store session tokens. If an attacker can obtain a user's session cookie, they can then impersonate that user.

Furthermore, JavaScript can read and make arbitrary modifications to the contents of a page being displayed to a user. Therefore, XSS in conjunction with some clever social engineering opens up a lot of possibilities for an attacker.

Remediation

Apply context-dependent encoding and/or validation to user input rendered on a page
References:

@goestin820 goestin820 added the bug Something isn't working label Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant