• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • github-plugin

      When using a Shared Secret, Jenkins will accept webhook requests, which are not signed at all.

      • Github (Secret="123") --> Jenkins (Secret="123") 
      • Github (Secret="wrong") --> Jenkins (Secret="123") 
      • Github (Secret="") --> Jenkins (Secret="123")   This should not be "200 OK"

      The last example shows what happens when you omit the Shared Secret on the Github Webhook Configuration page but not in Jenkins. I expected Jenkins to reject the request.

          [JENKINS-48762] Unsigned Webhooks are always accepted

          Dominique Mattern created issue -
          Dominique Mattern made changes -
          Description Original: When using a Shared Secret, Jenkins will accept webhook requests, which are not signed at all.
           * Github (Secret="123") --> Jenkins (Secret="123") (/)
           * Github (Secret="wrong") --> Jenkins (Secret="123") (x)
           * Github (Secret="") --> Jenkins (Secret="123") (/) <-- *This should not be 200 OK*

          The last example shows what happens when you omit the Shared Secret on the Github Webhook Configuration page *but not in Jenkins*. I expected Jenkins to reject the request.
          New: When using a Shared Secret, Jenkins will accept webhook requests, which are not signed at all.
           * Github (Secret="123") --> Jenkins (Secret="123") (/)
           * Github (Secret="wrong") --> Jenkins (Secret="123") (x)
           * Github (Secret="") --> Jenkins (Secret="123") (/)  *This should not be 200 OK*

          The last example shows what happens when you omit the Shared Secret on the Github Webhook Configuration page *but not in Jenkins*. I expected Jenkins to reject the request.
          Dominique Mattern made changes -
          Description Original: When using a Shared Secret, Jenkins will accept webhook requests, which are not signed at all.
           * Github (Secret="123") --> Jenkins (Secret="123") (/)
           * Github (Secret="wrong") --> Jenkins (Secret="123") (x)
           * Github (Secret="") --> Jenkins (Secret="123") (/)  *This should not be 200 OK*

          The last example shows what happens when you omit the Shared Secret on the Github Webhook Configuration page *but not in Jenkins*. I expected Jenkins to reject the request.
          New: When using a Shared Secret, Jenkins will accept webhook requests, which are not signed at all.
           * Github (Secret="123") --> Jenkins (Secret="123") (/)
           * Github (Secret="wrong") --> Jenkins (Secret="123") (x)
           * Github (Secret="") --> Jenkins (Secret="123") (/)  *This should not be "200 OK"*

          The last example shows what happens when you omit the Shared Secret on the Github Webhook Configuration page *but not in Jenkins*. I expected Jenkins to reject the request.
          Matthias Silbernagl made changes -
          Link New: This issue duplicates JENKINS-48012 [ JENKINS-48012 ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

            lanwen Kirill Merkushev
            nullentity Dominique Mattern
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: