用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-tomcat10-v110-2-5命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-tomcat10-v110-2.5 |
| description | Disable client facing Stack Traces (Automated) |
| category | cis-tomcat |
| version | 1.1.0 |
| author | cyberstrike-official |
| tags | ["cis","tomcat","linux","java","information-leakage","server-info"] |
| cis_id | 2.5 |
| cis_benchmark | CIS Apache Tomcat 10 Benchmark v1.1.0 |
| tech_stack | ["linux","tomcat","java"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
When a runtime error occurs during request processing, Apache Tomcat will display debugging information to the requestor. It is recommended that such debug information be withheld from the requestor.
Debugging information, such as that found in call stacks, often contains sensitive information which may be useful to an attacker. By preventing Tomcat from providing this information, the risk of leaking sensitive information to a potential attacker is reduced.
Perform the following to determine if Tomcat is configured to prevent sending debug information to the requestor
<error-page> element is defined in $CATALINA_HOME/conf/web.xml.<error-page> element has an <exception-type> child element with a value of java.lang.Throwable.<error-page> element has a <location> child element.Note: Perform the above for each application hosted within Tomcat. Per application instances of web.xml can be found at $CATALINA_HOME/webapps/<app_name>/WEB-INF/web.xml.
Perform the following to prevent Tomcat from providing debug information to the requestor during runtime errors:
<error-page>, to the <web-app> element, in the $CATALINA_HOME/conf/web.xml file.<exception-type>, to the <error-page> element. Set the value of the <exception-type> element to java.lang.Throwable.<location> to the <error-page> element. Set the value of the <location> element to the location of page created in step 1.The resulting entry will look as follows:
<error-page>
<exception-type>java.lang.Throwable</exception-type>
<location>/error.jsp
Tomcat's default configuration does not include an <error-page> element in $CATALINA_HOME/conf/web.xml. Therefore, Tomcat will provide debug information to the requestor by default.
v8:
v7: