Code Monkey home page Code Monkey logo

momo-code-sec-inspector-java's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

momo-code-sec-inspector-java's Issues

硬编码凭证熵与阈值判断有问题

src\main\java\com\immomo\momosec\lang\java\rule\momosecurity\HardcodedCredentials.java
136行,此处计算字符串熵的判断应该为小于才比较贴合实际吧,不然连测试例子中的admin_passwd都检测不出来,作用不大。反而那些又臭又长的一般就认为加密过或者不是密码。

Hi,插件有用到Log4j吗

Hi,大佬,
我在阅读咱们源码的时候看到有如下截图,想请问下咱们momo安全插件有使用Log4j组件吗

image

期待得到回复

表达式较为复杂的情况 自动修复有误

原代码

<when test="userNameList != null and userNameList != ''">
    and (createdBy in ${userNameList} or projectId IN ${id})
</when>

自动修复后的代码

<when test="userNameList != null and userNameList != ''">
  and (createdBy in
  <foreach collection="userNameList" item="userNameListItem" open="(" separator="," close=")">
     #{userNameListItem}
  </foreach>
  or projectId IN
</when>

可以看到 projectId IN ${id} 并未正确修复
) 也丢失了

1020:硬编码凭证风险为啥无法检测?

第一种:
public class ProducerTest {
public static void main(String[] args) {
Properties properties = new Properties();
// AccessKey 阿里云身份验证,在阿里云用户信息管理控制台获取
properties.put(PropertyKeyConst.AccessKey,"L4534GH11FXqsEtyZfbchwuP");
// SecretKey 阿里云身份验证,在阿里云用户信息管理控制台获取
properties.put(PropertyKeyConst.SecretKey, "SHF8WVOF11jSIaY5OnZ3KlAARRePdk");

第二种:
public static final String FORGET_PASSWORD = "password";

上面两类都无法检测,请问有测试代码吗

[Bug]插件使用问题

问题描述

请问FeedbackAspect、FeedbackService要如何才能生效,尝试把相关代码及plugin.xml配置打开后发现在2018.3下使用runIde任务调试不成功,求指导。

期望有主动扫描代码的功能

项目中有不少已经开发完成的功能,希望也能用插件扫描一下是否存在安全隐患。

期望有一个主动扫描的功能,对项目中所有文件进行扫描!

谢谢momo团队提供的这么好用的插件!

[Bug]插件使用问题

问题描述

使用的193.15版本,testcase 里的一些mybatis的写法没有检测出问题

复现方法

使用的193.15版本插件和 Vuln.xml文件 测试
https://github.com/momosecurity/momo-code-sec-inspector-java/blob/2018.3/src/test/testData/lang/xml/rule/momosecurity/MybatisXmlSQLi/Vuln.xml

问题截图

如果可以,请提供截图以帮助进一步确认问题。
image

软件版本

IDEA 社区办 2019.2
插件193.15版本

IntelliJ IDEA 2019.2 (Community Edition)
Build #IC-192.5728.98, built on July 23, 2019
Runtime version: 11.0.3+12-b304.10 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.14
GC: ParNew, ConcurrentMarkSweep
Memory: 1981M
Cores: 8
Registry: debugger.watches.in.variables=false, git.explicit.commit.renames.prohibit.multiple.calls=false
Non-Bundled Plugins: FindBugs-IDEA, Jar Tool, com.dmitz.intellij.plugin.websocket.client, com.github.gtache.lsp, Momo Code Sec Inspector (Java), me.vukas.remote-debug, mobi.hsz.idea.gitignore, MavenRunHelper, Docker, aws.toolkit, org.sonarlint.idea, ru.basecode.ide.rest.plugin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.