id: telerik-dialoghandler-detect

info:
  name: Detect Telerik Web UI Dialog Handler
  author: organiccrap,zhenwarx,nielsing
  severity: info
  description: This template detects the Telerik Web UI Dialog Handler.
  reference:
    - https://captmeelo.com/pentest/2018/08/03/pwning-with-telerik.html
    - https://github.com/bao7uo/dp_crypto
  metadata:
    max-request: 17
  tags: tech,telerik,asp

http:
  - method: GET
    path:
      - "{{BaseURL}}{{paths}}"
    payloads:
      paths:
        - '/Telerik.Web.UI.DialogHandler.aspx?dp=1'
        - '/desktopmodules/telerikwebui/radeditorprovider/telerik.web.ui.dialoghandler.aspx?dp=1'
        - '/desktopmodules/dnnwerk.radeditorprovider/dialoghandler.aspx?dp=1'
        - '/DesktopModules/Admin/RadEditorProvider/DialogHandler.aspx?dp=1'
        - '/DesktopModule/UIQuestionControls/UIAskQuestion/Telerik.Web.UI.DialogHandler.aspx?dp=1'
        - '/Modules/CMS/Telerik.Web.UI.DialogHandler.aspx?dp=1'
        - '/Admin/ServerSide/Telerik.Web.UI.DialogHandler.aspx?dp=1'
        - '/DesktopModules/TNComments/Telerik.Web.UI.DialogHandler.aspx?dp=1'
        - '/Providers/HtmlEditorProviders/Telerik/Telerik.Web.UI.DialogHandler.aspx?dp=1'
        - '/App_Master/Telerik.Web.UI.DialogHandler.aspx?dp=1'
        - '/common/admin/PhotoGallery2/Telerik.Web.UI.DialogHandler.aspx?dp=1'
        - '/common/admin/Jobs2/Telerik.Web.UI.DialogHandler.aspx?dp=1'
        - '/AsiCommon/Controls/ContentManagement/ContentDesigner/Telerik.Web.UI.DialogHandler.aspx?dp=1'
        - '/common/admin/Calendar/Telerik.Web.UI.DialogHandler.aspx?dp=1'
        - '/cms/portlets/Telerik.Web.UI.DialogHandler.aspx?dp=1'
        - '/dashboard/UserControl/CMS/Page/Telerik.Web.UI.DialogHandler.aspx/Desktopmodules/Admin/dnnWerk.Users/DialogHandler.aspx?dp=1'
        - '/Telerik.Web.UI.DialogHandler.axd?dp=1'

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - 'Invalid length for a Base-64 char array'
# digest: 4a0a0047304502200cff3027072921648e60c5cd1c5d52acf643da4e72e64f21ca42966ca73c396c022100d916378e5e45b096f9acf749e16cfd37245734c6774b0a63b9d86f630ea05d7d:922c64590222798bb761d5b6d8e72950