2022-02-14 17:20:32 +00:00
|
|
|
id: cobbler-version
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Cobbler Version Detection
|
|
|
|
author: c-sh0
|
|
|
|
severity: info
|
|
|
|
description: Obtain cobbler version information
|
2023-04-28 08:11:21 +00:00
|
|
|
metadata:
|
|
|
|
max-request: 1
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: tech,cobbler,api
|
2022-02-14 17:20:32 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-02-14 17:20:32 +00:00
|
|
|
- method: POST
|
|
|
|
path:
|
|
|
|
- "{{BaseURL}}/cobbler_api"
|
|
|
|
|
|
|
|
body: |
|
2023-10-14 11:27:55 +00:00
|
|
|
<?xml version='1.0'?>
|
|
|
|
<methodCall>
|
|
|
|
<methodName>extended_version</methodName>
|
|
|
|
<params></params>
|
|
|
|
</methodCall>
|
2022-02-14 17:20:32 +00:00
|
|
|
|
|
|
|
headers:
|
|
|
|
Content-Type: text/xml
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '<name>version</name>'
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
part: body
|
|
|
|
group: 1
|
|
|
|
regex:
|
2023-10-14 11:27:55 +00:00
|
|
|
- "<value><string>([0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3})</string></value>"
|
2023-10-19 13:13:52 +00:00
|
|
|
# digest: 490a004630440220179193d393197ea8d552fcbe65c5805318de811c093c150a87365164bec6e63f02204ed7afc4109420e87a4d51c2d72306bc9e7e5aeae1a8120d6ea16a73c380d082:922c64590222798bb761d5b6d8e72950
|