zoukankan      html  css  js  c++  java
  • 安全测试问题

    1. Log Forging

    将打印日志的代码删除(干脆直接)

    自定义描述错误原因,然后再打印出来。

            public static final String NFE = "Failed to parse val. The input is required to be an integer value."
    
            String val = request.getParameter("val"); 
            try { 
                int value = Integer.parseInt(val); 
            } catch (NumberFormatException nfe) {
                log.info(NFE); 
            }

    2. Hardcoded Password,密码硬编码

    删除硬编码的代码

    3. Insecure Submission,不安全的提交

    前端界面form设置为method="post"

    4. Password in Configuration File

    删除关键字password

    5. Autocomplete,自动完成功能

    表单控件Autocomplete设置为off

    6. SQL注入风险

    删除排序使用的$

    ${sidx} ${order}
     
  • 相关阅读:
    2017年暑期实习生招聘(百度)——两道编程题
    携程笔试中的一道编程题
    软工假期预习作业1
    假期作业
    FAFU 1557
    HDU 1028
    POJ 3126
    HDU5108
    POJ 1716
    HDU4790
  • 原文地址:https://www.cnblogs.com/yangjiming/p/13786000.html
Copyright © 2011-2022 走看看