Kernel packet hijacking白帽子
833 subscribers
43 photos
3 links
Kernel packet hijacking白帽子
Download Telegram
org.noear.solon.core.handle.RenderManager#render
This section selects the view plugin based on the file extension; if no match is found, the default renderer will be used.

org.noear.solon.view.velocity.VelocityRender#rende
org.noear.solon.view.velocity.VelocityRender#render_mav
org.apache.velocity.runtime.resource.ResourceManagerImpl#getResource
org.apache.velocity.runtime.RuntimeInstance#getTemplate(java.lang.String, java.lang.String)
The overall process should be:

User input → Context.param() → ModelAndView() → RenderManager.render() → Template engine processing

Before the template engine processes the data, the template file path is not processed or restricted. Therefore, if the template engine does not process the template file path during processing, an arbitrary file read vulnerability will occur.

We can try using other view plugins to see how it goes.

Why doesn't solon-view-freemarker work?
We see that FreeMarker handles the path of template files, disallowing cross-directory access.

org.noear.solon.view.freemarker.FreemarkerRender#render
org.noear.solon.view.freemarker.FreemarkerRender#render_mav
freemarker.template.Configuration#getTemplate(java.lang.String, java.lang.String)
freemarker.template.Configuration#getTemplate(java.lang.String, java.util.Locale, java.lang.Object, java.lang.String, boolean, boolean)
freemarker.cache.TemplateCache#getTemplate(java.lang.String, java.util.Locale, java.lang.Object, java.lang.String, boolean)
调用 name = templateNameFormat.normalizeRootBasedName(name); 来对传入的模板文件名进行处理
freemarker.cache.TemplateNameFormat.Default020300#normalizeRootBasedName
Vulnerability fix: org.noear.solon.core.handle.RenderManager#getViewRender
I had to wait a while, then try 192.168.0.1

But I couldn't get it to work; the simulation wouldn't start, and I didn't know why. I couldn't figure out the cause.

Then I switched to the Firmware Analysis Plus (FAP) framework, and the simulation started working.
After waiting for a while, press Enter to start the simulation. Then enter 192.168.0.1.
Enter the wizard and type in anything.
Password is 8 characters, enter 12345678
基础知识
产品: Office Word,包括 Office 365 Word
测试版本: Microsoft Word for Microsoft 365 MSO(版本 2306 内部版本 16.0.16529.20164)64 位
漏洞类别:XSS(跨站点脚本)

合作意向;@kittenmicat
Equipment for penetrating physical barriers to conduct cyberattacks. In order to support the U.S. military forces in conducting covert operations close to the border, the NSA also needs the operational capability to penetrate physical barriers and infiltrate the adversary's internal network. The NSA has also developed a series of tools and technologies focused on penetrating physical barrier protection mechanisms, with the COTTONMOUTH-1 being the most representative of them.

合作意向;@kittenmicat
Apple's iOS First Banking Trojan Virus: The System, touted as the most secure, is No Longer Safe

Recently, Group-IB, a cybersecurity company dedicated to investigating, preventing, and combating digital crime, discovered its first iOS Trojan virus—GoldPickaxe.iOS—which can steal users' facial recognition data, identification documents, and intercept text messages.

合作意向;@kittenmicat