- Status Closed
-
Assigned To
cbay - Private
Opened by zain812 - 12.11.2024
Last edited by cbay - 12.11.2024
FS#98 - Poor Error Handling
It was observed that the application exhibits poor data handling practices, which could lead to potential security vulnerabilities. Specifically:
Reflected Input in 404 Error Page: When a user navigates to a non-existent URL ====(https://www.alwaysdata.com/%69%6e%73%63%72%69%70%74%69%6f%6e%2f%79%6f%75%5f%61%72%65%5f%68%61%63%6b%65%64%5f%62%79%5f%7a%61%69%6e),==== the application returns a 404 error page. However, any additional text or encoded characters appended to the URL (e.g., malicious payloads) are directly reflected in the error message without proper sanitization or encoding.
Example: Accessing the crafted URL 1: https://www.alwaysdata.com/%69%6e%73%63%72%69%70%74%69%6f%6e%2f%79%6f%75%5f%61%72%65%5f%68%61%63%6b%65%64%5f%62%79%5f%7a%61%69%6e
2: https://www.alwaysdata.com/yOu_Are_hAckEd_by_zaIN_Ul_AbideeN
Result:
====404 - Page not found
The page /yOu_Are_hAckEd_by_zaIN_Ul_AbideeN could not be found. If you believe this is an error on our part, please let us know.
Back
====
====Risk:==== This issue indicates a lack of proper input validation and output encoding, making the application vulnerable to Reflected Cross-Site Scripting (XSS) attacks. An attacker could craft malicious URLs containing scripts (e.g., <script>alert('XSS')</script>), which, if clicked by another user, could execute arbitrary JavaScript in their browser.
**Recommendation:**
Input Validation:
Validate and sanitize all user-supplied inputs before processing them.
Reject or encode unexpected characters in URLs.
==Output Encoding:
==
Ensure that any data rendered on error pages is properly encoded to prevent the execution of scripts.
==Customized 404 Page:==
Use a generic 404 error page that does not reflect user input back in the response.
==Security Testing:
==
Perform a thorough security assessment to identify and mitigate XSS or other injection vulnerabilities.
Loading...
Available keyboard shortcuts
- Alt + ⇧ Shift + l Login Dialog / Logout
- Alt + ⇧ Shift + a Add new task
- Alt + ⇧ Shift + m My searches
- Alt + ⇧ Shift + t focus taskid search
Tasklist
- o open selected task
- j move cursor down
- k move cursor up
Task Details
- n Next task
- p Previous task
- Alt + ⇧ Shift + e ↵ Enter Edit this task
- Alt + ⇧ Shift + w watch task
- Alt + ⇧ Shift + y Close Task
Task Editing
- Alt + ⇧ Shift + s save task
Hello,
That's not a vulnerability in our opinion, Google does the same.
Kind regards,
Cyril
you are absolutely right