Saturday, February 23, 2019

Migrate to stamblerre/gocode in YouCompleteMe for Go module support

Migrate to stamblerre/gocode in YouCompleteMe for Go module support

apt install build-essential cmake python3-dev

git clone --depth 1 https://github.com/Valloric/YouCompleteMe.git

cd /home/jun/.vim/pack/plugins/start/YouCompleteMe
git submodule update --init --recursive

vim /home/jun/.vim/pack/plugins/start/YouCompleteMe/third_party/ycmd/ycmd/completers/go/go_completer.py

mdempsky/gocode
stamblerre/gocode

vim /home/jun/.vim/pack/plugins/start/YouCompleteMe/third_party/ycmd/.gitmodules

mdempsky/gocode
stamblerre/gocode

rm -rf third_party/ycmd/third_party/go/src/github.com/mdempsky/

vim ./third_party/ycmd/build.py

cd third_party/ycmd/third_party/go/src/github.com
mkdir stamblerre
cd stamblerre
git clone --depth 1 https://github.com/stamblerre/gocode.git

cd /home/jun/.vim/pack/plugins/start/YouCompleteMe

./install.py --go-completer

Reference:

https://github.com/Valloric/YouCompleteMe

https://github.com/stamblerre/gocode

Sunday, February 10, 2019

Apache SAML library

Apache SAML library

1. mod_shib

2. mod_auth_mellon

HTML a tag target="_blank" vulnerability tabnabbing

HTML a tag target="_blank" vulnerability tabnabbing

window.opener.location = 'https://fakewebsite/facebook.com/PHISHING-PAGE.html';

Solution 1:

<a target="_blank" rel="noopener noreferrer">demo</a>

Solution 2:

var newWnd = window.open();
newWnd.opener = null;

Reference:

https://www.jitbit.com/alexblog/256-targetblank---the-most-underestimated-vulnerability-ever/

https://medium.com/@ali.dev/how-to-fix-target-blank-a-security-and-performance-issue-in-web-pages-2118eba1ce2f