Skip to content

(DOM-based XSS) HTML Injection vulnerability in TOWeb v.12.05 and before allows an attacker to inject HTML/JS code via the _message.html component.

Notifications You must be signed in to change notification settings

leoCottret/CVE-2024-30956

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

CVE-2024-30956

cf https://www.lauyan.com/en/toweb-updates.html#iyFEw37D

(DOM-based XSS) HTML Injection vulnerability in TOWeb version 5 <= 12.05 allows an attacker to inject HTML/JS code via the _message.html component.

Explanation

  • the _message.html file is used to display an error page, by decoding and executing the cypher right to the ?.
  • the cypher is HTML code, base64 encoded, then reversed (for an english website, the error page would be 127.0.0.1:8000/_message.html?==gP2lGZvwjP2lGZvwjPyJGP+InY84DcvwDZuV3bGBCdv5EIldWYQ5Dc84jMo9CPg4jMoxjPiEmchBXL3RnI9M3chx2YgYXakxjPxg2L8IXdlJncF5TMoxjPiIXZ05WZjpjbnlGbh1Cd4VGdi0TZslHdzBidpRGP)
  • since this is HTML code, we can add javascript code in it, that will be executed when the user navigates to the url

Impact

Mitigation

  • This vulnerability is fixed in version 12.06

Exploit

About

(DOM-based XSS) HTML Injection vulnerability in TOWeb v.12.05 and before allows an attacker to inject HTML/JS code via the _message.html component.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published