chore: add new sap http templates #14224
Open
+1,132
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Information
sap-sapcontrol-abapreadsyslog-log-disclosureABAPReadSyslog, leaking ABAP system log (SM21) entriessap-sapcontrol-getenvironment-env-disclosureGetEnvironment, leaking full process environment variablessap-sapcontrol-getversioninfoGetVersionInfoand extracts kernel version information forsapstartsrvandmsg_serveras well as the SAP SID from typical/usr/sap/<SID>/...paths for fingerprinting and reconsap-sapcontrol-getinstancepropertiesGetInstanceProperties, enumerating all Webmethods vs Protected Webmethods and basic instance metadatasap-sapcontrol-listlogfiles-log-enumListLogFiles, enumerating SAP log and trace filessap-sapcontrol-listconfigfiles-config-enumListConfigFiles, enumerating SAP profile and configuration filessap-sapcontrol-readconfigfile-config-disclosureListConfigFilesandReadConfigFileto readDEFAULT.PFLwithout authentication and extract key parameterssap-sapcontrol-readlogfile-log_disclosureSOAP interface exposes the ReadDeveloperTrace web method without
authentication to retrieve log files like sapstart.log and many others.
sap-sapcontrol-osexecute-unauth-rceOSExecuteRCE via a benign proof of concept command (/bin/sh -c id)Template validation
Additional Details (leave it blank if not applicable)
BaseURLorPathplusHostnameABAPReadSyslogResponse,GetEnvironmentResponse,ListLogFilesResponse,ReadConfigFileResponse)HOME=/home/,<configfiles>,<file>,<filename>,uid=fromidoutput)sap-sapcontrol-osexecute-unauth-rcetemplate uses a low impact, read only command (id) for exploitation validation. Have not found a host vulnerable but will update the template once I found a true positive.Example local test invocation pattern (replace target values accordingly):
nuclei -u https://target:50013/ -t ./sap-sapcontrol-*.yaml -debug