jenkinsci / generic-webhook-trigger-plugin

Can receive any HTTP request, extract any values from JSON or XML and trigger a job with those values available as variables. Works with GitHub, GitLab, Bitbucket, Jira and many more.
https://plugins.jenkins.io/generic-webhook-trigger
404 stars 159 forks source link

"jenkins" found in public facing error message #235

Closed rene00 closed 2 years ago

rene00 commented 2 years ago

When sending a "dummy" request to the generic-webhook-trigger endpoint, "jenkins" is found in the response:

$ curl -v https://example.org/generic-webhook-trigger/invoke
[...]
{"jobs":null,"message":"Did not find any jobs with GenericTrigger configured! If you are using a token, you need to pass it like ...trigger/invoke?token=TOKENHERE. If you are not using a token, you need to authenticate like http://user:passsword@jenkins/generic-webhook... "}

This could be considered leaking information about the software that the endpoint runs to potential attackers.

tomasbjerre commented 2 years ago

Merged and released now.