lucideus-repo / unsafe_bank Goto Github PK
View Code? Open in Web Editor NEWVulnerable Banking Suite
License: GNU General Public License v3.0
Vulnerable Banking Suite
License: GNU General Public License v3.0
Привет! При добавлении нового пользователя на странице высвечивается надпись backend server is unresponsive. Проверял server_url:server_port/api - выдает welcome UnsafeBank (как у вас написано). В чем может быть дело?
Hi,
I would like to add additional field (account number) to Fund transfer data details.
I checked "handleBankFundTransferThunk.ts" in the " web/src/app/thunks/BankTransfer/" and I can see that additional fields are possible when under "data" structure, like:
const handleBankFundTransfer = (
token: string,
alias: string,
amount: string,
accountNumber: string,
remarks: string,
otpRespose: string
) => (dispatch: Dispatch) => {
axios
.post(routes.api.fundTransfer.payBankTransfer, {
requestBody: {
timestamp: "325553",
device: {
deviceid: "UHDGGF735SVHFVSX",
os: "ios",
host: "lucideustech.com"
},
data: {
alias: alias,
amount: amount,
account_number: accountNumber,
remarks: remarks,
otp_response: otpRespose
}
}
I can see that there are other files related to payment handling:
web/src/app/slices/BankTransferSlice.ts
web/src/app/components/Pages/FundTransfer/BankTransferPage.tsx
web/src/app/store/ReduxState.ts
When ever I tried to modify all files and add "accountNumber" field, I can't rebuild containers, because of errors.
Tried several combinations, but unsuccessful.
Can you just point me where in the structure additional details needs to be added so "accountNumber" field can be included in the Fund transfer details?
Thanks,
Miha
Just leaving it here for someone else who suffered:
Old: FROM node:13.12.0-alpine as build
New: FROM node:14-alpine as build
Using the 13.12.0 default throws an error in pretty-format, since it expects v12 or v14. v16 could work but for the sake of this project's aim, it might be too new :)
RUN npm install popper.js jquery prop-types @testing-library/[email protected] [email protected]
These packages were annoying me the most. The first four didn't install at all via yarn.lock, and trying to use yarn add prior to yarn -s didn't help and I had to use npm. @testing-library/dom in particular had to be manually specified, otherwise a too new version would install causing pretty-format would complain about the TOS file being incorrect. Finally, node-sass had to be specified to version 4.14.1, as the default specified in yarn.lock (v7) was not compatible (you need at least NodeJS v17 to run node-sass v7).
After doing these changes, docker-compose up -d will succeed, and you can access the Web GUI from http://localhost:3000
Thanks to Abraham for this post in helping me get the right version of node-sass. The rest was just experience, frustration, pain, and a string of what-ifs.
[db internal] load metadata for docker.io/library/mysql:8.0.19:
failed to solve: mysql:8.0.19: error getting credentials - err: exit status 1, out: ``
Hi,
I am getting load metadata error on running docker-compose inside Backend folder:
Command : sudo docker-compose up -d
Machine : MacBook Pro M1 chip
rakeshkirola@Rakeshs-MacBook-Pro Backend % sudo docker-compose up -d
[internal] load metadata for docker.io/library/nginx:alpine:
[internal] load metadata for docker.io/library/node:13.12.0-alpine:
failed to solve: rpc error: code = Unknown desc = failed to solve with frontend dockerfile.v0: failed to create LLB definition: rpc error: code = Unknown desc = error getting credentials - err: exit status 1, out: ``
Do let me know if more information is required regarding this.
Thanks
$ docker-compose up -d
Building web
Step 1/12 : FROM node:alpine as build
---> fa2fa5d4e6f4
Step 2/12 : WORKDIR /app
---> Using cache
---> e25c8210dbba
Step 3/12 : COPY . /app
---> Using cache
---> 580e1e2cfd31
Step 4/12 : ENV PATH /app/node_modules/.bin:$PATH
---> Using cache
---> d5d559e29acd
Step 5/12 : RUN yarn -s
---> Running in da944c42d4db
warning @testing-library/jest-dom > css > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning @testing-library/jest-dom > css > source-map-resolve > [email protected]: Please see https://github.com/lydell/urix#deprecated
warning @testing-library/jest-dom > css > source-map-resolve > [email protected]: https://github.com/lydell/resolve-url#deprecated
warning @testing-library/react > @types/testing-library__react > @types/[email protected]: This is a stub types definition. testing-library__dom provides its own type definitions, so you do not need this installed.
warning @types/reactstrap > [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
warning @types/[email protected]: This is a stub types definition for Redux (https://github.com/reactjs/redux). Redux provides its own type definitions, so you don't need @types/redux installed!
warning node-sass > [email protected]: request has been deprecated, see request/request#3142
warning node-sass > node-gyp > [email protected]: request has been deprecated, see request/request#3142
warning node-sass > request > [email protected]: this library is no longer supported
warning react-scripts > [email protected]: This loader has been deprecated. Please use eslint-webpack-plugin
warning react-scripts > jest-environment-jsdom-fourteen > jsdom > [email protected]: request has been deprecated, see request/request#3142
warning react-scripts > webpack-dev-server > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning react-scripts > webpack-dev-server > chokidar > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning react-scripts > babel-jest > @jest/transform > jest-haste-map > [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
warning react-scripts > jest-environment-jsdom-fourteen > jsdom > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
warning react-scripts > webpack > watchpack > watchpack-chokidar2 > [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/[email protected]: joi is leaving the @Hapi organization and moving back to 'joi' (hapijs/joi#2411)
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: request has been deprecated, see request/request#3142
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: request-promise-native has been deprecated because it extends the now deprecated request package, see request/request#3142
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning react-scripts > workbox-webpack-plugin > workbox-build > @hapi/joi > @hapi/topo > @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained
warning react-scripts > jest > jest-cli > jest-config > jest-environment-jsdom > jsdom > [email protected]: use String.prototype.padStart()
warning react-scripts > workbox-webpack-plugin > workbox-build > strip-comments > babel-plugin-transform-object-rest-spread > babel-runtime > [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
warning reactstrap > react-popper > [email protected]: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
error An unexpected error occurred: "https://registry.yarnpkg.com/@fortawesome/free- solid-svg-icons/-/free-solid-svg-icons-5.15.1.tgz: ESOCKETTIMEDOUT".
ERROR: Service 'web' failed to build : The command '/bin/sh -c yarn -s' returned a non-zero code: 1
Hi,
I already asked for Android app, but would like to know if there is any progress and when Android app will be available?
Is there any timeline?
Thanks,
Miha
Hi,
i've read closed issues about same problem, but nothing change.
Always the same during yarn -s process, i've got many unmet dependencies.
I tried to fix them manually, but nothing work that way.
Sure, it's about versions.
I'll wait the correct fix to give it another try.
Regards.
Hi,
Is there a simple way to open API access to backend server or UnSAFE Bank is not build to allow API access?
Thanks,
Miha
Hi,
What is best option to map port 80 to Web server in your configuration and not map it to port 3000?
Which files needs to be changed in order to have backend accessible when this change is done?
Asking, because when I change some of the port mapping in the Dockerfiles and config files, and rebuild containers, I'm getting backend inaccessible message.
Is there anything else that needs to be done?
As well can SSL be enabled in the Web container, simply adding listening for port 443 and needed certificates on the NGNIX or there are some other mapping needed in the backend?
Hi,
Is android support on the roadmap and still something you are considering or you will only support iOS?
Thanks,
Miha
Hi,
Trying to change format of a bank account number, to actually use IBAN numbers.
I check "AddBeneficiaryPage.tsx", "Model_beneficiary.php" and some other pages, but can't figure it out where you are checking format of the bank account.
I corrected in the DB length of the account number to be max of 30 characters, and also changed some setting in .tsx and .php files.
Docker containers are build, but when I try to add new Beneficiary account, I'm getting error message that account number is not correct.
Any suggestion where I can quickly change this, so I can use more realistic bank accounts for EU?
IBAN looks like this (where length is from 16-30 characters): DE83500105173418298392
/Miha
Hi! I'm having some issues while executing docker-compose up -d
[web build 4/5] RUN yarn -s:
1.913 warning Pattern ["redux-thunk@latest"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-redux-thunk-2.3.0-51c2c19a185ed5187aaa9a2d08b666d0d6467622-integrity/node_modules/redux-thunk" as pattern ["redux-thunk@^2.3.0"]. This could result in non-deterministic behavior, skipping.
79.41 warning " > [email protected]" has unmet peer dependency "[email protected] - 3".
79.41 warning " > [email protected]" has unmet peer dependency "popper.js@^1.16.1".
79.42 warning " > [email protected]" has unmet peer dependency "prop-types@>=15".
79.42 warning " > @testing-library/[email protected]" has unmet peer dependency "@testing-library/dom@>=5".
failed to solve: process "/bin/sh -c yarn -s" did not complete successfully: exit code: 1
Any idea why?
Cheers
Hello,
Im using MacOs Monterey 12.4
docker version
Client:
Cloud integration: v1.0.25
Version: 20.10.16
API version: 1.41
Go version: go1.17.10
Git commit: aa7e414
Built: Thu May 12 09:20:34 2022
OS/Arch: darwin/amd64
Context: default
Experimental: true
Server: Docker Desktop 4.9.1 (81317)
Engine:
Version: 20.10.16
API version: 1.41 (minimum version 1.12)
Go version: go1.17.10
Git commit: f756502
Built: Thu May 12 09:15:42 2022
i got this error after run docker-compose up -d below, need your kindly help for the resolution:
[build 4/5] RUN yarn -s:
#12 0.831 warning Pattern ["redux-thunk@latest"] is trying to unpack in the same destination "/usr/local/share/.cache/yarn/v6/npm-redux-thunk-2.3.0-51c2c19a185ed5187aaa9a2d08b666d0d6467622-integrity/node_modules/redux-thunk" as pattern ["redux-thunk@^2.3.0"]. This could result in non-deterministic behavior, skipping.
#12 38.74 warning " > [email protected]" has unmet peer dependency "[email protected] - 3".
#12 38.74 warning " > [email protected]" has unmet peer dependency "popper.js@^1.16.1".
#12 38.74 warning " > [email protected]" has unmet peer dependency "prop-types@>=15".
#12 38.74 warning " > @testing-library/[email protected]" has unmet peer dependency "@testing-library/dom@>=5".
executor failed running [/bin/sh -c yarn -s]: exit code: 1
ERROR: Service 'web' failed to build : Build failed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.