duanputian5341 2018-07-10 15:12
浏览 34

添加安全性到用于购物车_upload的php会话?

I've a php session with the following variables initiated:

$_SESSION["multi-buy"] = 0;
$_SESSION["basket"] = array();

The characteristics of the session and variables are:

  • Only these two variables are stored in the session
  • No personal information will go into it - no log-ins, phone nos, addresses, etc.
  • No user access given to input directly into the variables
  • An integrity check applied before populating a cart _upload command for Paypal
  • No additional vars added server/client side
  • "multi-buy" will be over-written, checked via if n = integer and n > 1 then discount_cart = x; and only output when creating the cart _upload command
  • It's all served over https
  • Nothing will be stored in a database (the website is databaseless) so it'll be destroyed when the session expires
  • All financial and personal data will be dealt with on the Paypal hosted buy now screen.

So my questions are:

  1. Is the session in need of additional security over and above an integrity check on output and what's intrinsic to sessions?
  2. Is there a vulnurability that's nothing to do with the information as such, but instead with something replacing the session variable with malicious executable code?
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥50 如何用脚本实现输入法的热键设置
    • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
    • ¥30 深度学习,前后端连接
    • ¥15 孟德尔随机化结果不一致
    • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
    • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
    • ¥15 谁有desed数据集呀
    • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
    • ¥15 关于#hadoop#的问题
    • ¥15 (标签-Python|关键词-socket)