cookies

Browser won't set ASP.NET_SessionId cookie on payment gateway's post request to our site

淺唱寂寞╮ 提交于 2020-03-13 07:32:29
问题 We're experiencing a weird problem with the payment process of our web application which results in loss of session data. In this process, after our check-out page user is redirected to payment provider's page and redirected back to our site (to a url we specify) as soon as s/he's done there. This last redirect is done by browser's evaluation of the payment provider's html code which basically consists of a form that posts to our site and a few lines of javascript code that posts that form on

《贝贝GO》隐私政策

冷暖自知 提交于 2020-03-11 16:15:54
隐私政策 贝贝GO尊重并保护所有使用服务用户的个人隐私权。为了给您提供更准确、更有个性化的服务,贝贝GO会按照本隐私权政策的规定使用和披露您的个人信息。但贝贝GO将以高度的勤勉、审慎义务对待这些信息。除本隐私权政策另有规定外,在未征得您事先许可的情况下,贝贝GO不会将这些信息对外披露或向第三方提供。贝贝GO会不时更新本隐私权政策。 您在同意贝贝GO服务使用协议之时,即视为您已经同意本隐私权政策全部内容。本隐私权政策属于贝贝GO服务使用协议不可分割的一部分。 适用范围 a) 在您注册贝贝GO帐号时,您根据贝贝GO要求提供的个人注册信息; b) 在您使用贝贝GO网络服务,或访问贝贝GO平台网页时,贝贝GO自动接收并记录的您的浏览器和计算机上的信息,包括但不限于您的IP地址、浏览器的类型、使用的语言、访问日期和时间、软硬件特征信息及您需求的网页记录等数据; c) 贝贝GO通过合法途径从商业伙伴处取得的用户个人数据。 您了解并同意,以下信息不适用本隐私权政策: a) 您在使用贝贝GO平台提供的搜索服务时输入的关键字信息; b) 贝贝GO收集到的您在贝贝GO发布的有关信息数据,包括但不限于参与活动、成交信息及评价详情; c) 违反法律规定或违反贝贝GO规则行为及贝贝GO已对您采取的措施。 信息使用 a) 贝贝GO不会向任何无关第三方提供、出售、出租、分享或交易您的个人信息

PHPCMS v9.6.0 wap模块 SQL注入

╄→尐↘猪︶ㄣ 提交于 2020-03-11 01:44:21
调试这个漏洞的时候踩了个坑,影响的版本是php5.4以后。 由于漏洞是由parse_str()函数引起的,但是这个函数在gpc开启的时候(也就是php5.4以下)会对单引号进行过滤\' 。 看这里:https://github.com/80vul/pasc2at 漏洞来源:https://www.seebug.org/vuldb/ssvid-92929 分析:这个漏洞要三步的过程,直接进入第三步。 根据给的poc: /phpv9.6.0/index.php?m=content&c=down&a_k=98f1bLd4Xl93HOb6nCHAem4rZNirba2Plthb5VFosbY8sc5Ge5RUOcXNmToG7KqSO4bFECOrCZKwNhkiCWbpToHPxCMsDVNT50f9b77GSaWC2sX-cwwyfhrIApZgubCyapauw4S9NTkNggs1YgGdCrk3cFXANkAC6v6UMN-be3zwZqfVLeOYdiw 可以看到应该是a_k参数出现问题,位于content目录下, down.php页面, parse_str($a_k); 以 &为 分隔符,解析变量并且注册变量,并且对url进行解码 (参考:http://php.net/manual/zh/function.parse-str.php) 我们的poc是{"aid":1,"src

如何应对动态变更的Cookies

て烟熏妆下的殇ゞ 提交于 2020-03-06 16:15:17
这是个令人头疼的问题,明明进行编写好的程序(爬虫),时不时的要去看看运行状态,如果代码没BUG,网站不改动的话 程序停了,那100%是Cookies又双叒叕挂掉了 那如何才能实现 真 自动化呢 在百度检索出相关问题的解决方案中得出了结论,无非是 两种处理方法 一. 手动换Cookies————与本篇最终实现全自动的目标不符    PASS! 二. 修改Cookies生存时间    YES! (1)修改Cookies生存时间: 下载chrome 安装插件 edit this cookis 具体使用教程参看 https://jingyan.baidu.com/article/6d704a13f7aa1428da51ca7e.html 没试过效果怎么样,但是觉得还不是最佳解决方案,如果工程对象是客户端,APP 这种方法就不行了,难道面对Cookies老是挂掉真的无计可施了吗,我觉得有一种万全的方法 这里先记下想法,等有时间了再回来补充! (~﹃~)~zZ 让程序中的Cookies参数用文件形式保存,文件形式读取。 获取APP登录时的来往数据包 分析数据 第一步Request模拟登录 第二步拿Cookies 第三步保存到Cookies文件 第四步调用你的程序 第五步每隔number小时程序重新执行(number取决于Cookies的生存时间) 这样就达到了Cookies永不挂的目的咯!(~

Getting 401 Unauthorized error even when I'm logged in

感情迁移 提交于 2020-03-06 09:31:58
问题 Posting this Q&A for whomever it might concern: I've been working on a practice project since this course with a react front-end. The user's page on the front end does not fetch any data and gives 401 Unauthorized error( message: You are not logged in! Please log in to get access) . I figured the cookies are not being sent with the get request, I've tried both axios and fetch requests. I could set the req.authorization = `Bearer ${token}` or req.cookies = ${cookies}` after locally storing

Phonegap, Lawnchair and Cookie in Android

不羁的心 提交于 2020-03-05 06:42:39
问题 I'm using Lawnchair with in my Android Phonegap App. For most of my users, Lawnchair works well. But for some reasons, some of my users say that the settings are not saved (i use Lawnchair with DOM Adapter to save settings). Are there any other adapters that i can use with phonegap for Android? I saw Cookie Adapter but it is for the previous version of Lawnchair Thanks 回答1: There are many adapters in lawnchair to store stuff. http://westcoastlogic.com/lawnchair/adapters/ The way lawnchair

Django - redirecting a user to a specific view after GET to a separate view, changing language settings

这一生的挚爱 提交于 2020-03-05 05:04:16
问题 I have a site with that offers 2 language choices - English & Japanese. To change between the languages, A user clicks a button taking them to a view which changes the setting. Previously, it had always redirected to the home page but now I want to take them to where they were before. The current path is passed as a url param which is then saved to a response variable, which then has it's language cookie set before being returned. For some reason, when I use the parameter in the redirect

Django - redirecting a user to a specific view after GET to a separate view, changing language settings

人走茶凉 提交于 2020-03-05 05:03:54
问题 I have a site with that offers 2 language choices - English & Japanese. To change between the languages, A user clicks a button taking them to a view which changes the setting. Previously, it had always redirected to the home page but now I want to take them to where they were before. The current path is passed as a url param which is then saved to a response variable, which then has it's language cookie set before being returned. For some reason, when I use the parameter in the redirect

Edit Cookie HttpOnly value

不想你离开。 提交于 2020-03-03 07:28:10
问题 Due to PCI regulations, most cookies in my application need to be secure and httponly. I have achieved that through this line in my Apache config file: Header edit Set-Cookie ^(.*)$ $1;HttpOnly;Secure However this breaks part of the application where a single cookie, let's call it foobar, must be read by javascript. Therefore I need to remove the httponly for this cookie only. I've played around with several approaches including mod_rewrite but I can't get the httponly to drop off the cookie.