Get the App
SLTechnology News&Howtos  ›  Network Security  › 

Using xxe to obtain passwd of linux system

Shulou Source: shulou.com Published: 2022-06-01 10:23:21 10月02日 Update

Reference an external DTD file to access the intranet host / port.

(see response time)

Reference external DTD files to access the wai network.

Reference an internal entity.

& xxe

External entities read local files.

& xxe

The external entity accesses the inner wang host port.

(see response time)

External entities access the wai network.

& xxe

Download the rrodrigo/xxelab image in docker

Start: docker run-d-p 8082VOL80 rrodrigo/xxelab

Grab the registration package and find that it is delivered in xml format, and the mailbox returns:

Xxe echo setting read / etc/passwd will be performed at the returned content

Use base64 coding for xxe to prevent verification of return packets

Return base64 packet, base64 decode

Tags: Entity file host time port content data format encoding mailbox mirror authentication system Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Xiaomi MySQL vpn OPPO Reno