Ashrafiucse spring security

From jiayaoqijia/cryptoskill · View interactive version

Ashrafiucse spring security is an AI agent skill from the GitHub repository jiayaoqijia/cryptoskill. Audits Spring Boot / Spring (Java) applications for framework-specific vulnerabilities — JPQL/native query concatenation, JdbcTemplate string-concat SQL injection, MyBatis ${} substitution, Thymeleaf th:utext and JSP scriplet XSS, Spring Security misconfigurations (csrf().disable(), permitAll() on s

How to use this skill

Skill file

Spring Security

Step 0 — Detect

rg -n "spring-boot|springframework" -g 'pom.xml' -g 'build.gradle*' | head -5
rg --files -g 'application*.properties' -g 'application*.yml' -g '*SecurityConfig*'

Record Spring Boot/Framework version (Spring4Shell check: ../cve-research/vuln-db/entries/), Security config style (WebSecurityConfigurerAdapter vs SecurityFilterChain), template engine.

Step 1 — Configuration files

rg -n "password|secret|include-stacktrace|exposure|cookie" -g 'application*.properties' -g 'application*.yml' -g 'application*.yaml'

Step 2 — Spring Security config

rg -n "csrf\(\)\.disable|permitAll|antMatchers|authorizeHttpRequests|@PreAuthorize|@EnableWebSecurity" src/

Step 3 — SQL injection

rg -n "createQuery\([\"'][^\"']*\+|createNativeQuery.*\+|jdbcTemplate\.\w+\([\"'][^\"']*\+" src/
rg -n "\\\$\{" -g '*.xml' src/   # MyBatis mappers

Step 4 — XSS / templates

rg -n "th:utext|<%=|escapeXml=\"false\"|c:out" src/main/resources/templates/ src/ 2>/dev/null

Census, don't sample: disposition every hit. Severity by privilege direction per ../injection-flaws/SKILL.md (XSS table) — unprivileged-authored content rendered unescaped in a staff view = Critical.

Step 5 — Deserialization & SpEL

rg -n "enableDefaultTyping|ObjectInputStream|readObject|parseExpression" src/

Step 6 — Files & commands

rg -n "FileInputStream\(|Files\.(read|copy)|new File\(" src/ | rg -i "request|param" | head
rg -n "Runtime\.getRuntime|ProcessBuilder" src/

Reporting

Severity table above; fixes are localized (bound params, th:text, matcher tightening). Cross-reference framework CVEs (Spring4Shell, historic) via ../cve-research/SKILL.md and dependency CVEs via ../dependency-vulns/SKILL.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.