imCMS 4.3.7 - Multiple Vulnerabilities
The imCMS application contained multiple vulnerabilities including SSRF, arbitrary file read, XSS, CSRF, file upload, and path traversal. An attacker could exploit these to read sensitive files, execute code, or perform other malicious actions.
jra8908.medium.com
Published on jra8908.medium.com
Jinny Ramsmark
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the application fails to properly validate user-supplied input in multiple components, leading to various injection and traversal vulnerabilities.
What the attacker needed
For SSRF: none; For file read: admin access; For XSS: admin access for some; For CSRF: admin visits malicious page
The fix
The vulnerabilities were fixed by the vendor after patches were issued and retested.
How it was found
- Send a request to the ImageHandling servlet with a URL parameter pointing to an external server.
- Observe that the server makes a request to the specified URL.
- For file read, manipulate the files1 parameter in FileAdmin to include a path traversal sequence.
- For XSS, inject a script payload into the file parameter of FileAdmin_edit.jsp.
- For CSRF, craft a malicious page that submits a file upload request to the FileAdmin endpoint.
- For path traversal, send a request to ImagePreview with a path containing ../ sequences.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This report describes several security flaws in a content management system. For example, one flaw lets an attacker make the server fetch a file from any address, which could be used to attack internal systems. Another flaw lets an attacker read files on the server that they shouldn't be able to see.
What is SSRF?
The server can be made to fetch an address the attacker chooses, reaching internal services, cloud metadata or other customers' data.