Skip to content

Commit

Permalink
feat(socketio-server): cross site scripting attack
Browse files Browse the repository at this point in the history
    Primary Changes
    ------------------
    1. Updated cactus-cmd-socketio-server/src/main/typescript/routing-interface/routes/index.ts
    to mitigate the xss attack

Signed-off-by: Bhaskar <ram@hacker.ind.in>
  • Loading branch information
Bhaskar authored and petermetz committed Jul 16, 2022
1 parent da94cd6 commit a5303ed
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ router.get(
"/api/v1/bl/logics/",
(req: Request, res: Response, next: NextFunction) => {
try {
res.send("Not Implemented (Show Business Logics)\n");
res.render("Not Implemented (Show Business Logics)\n");
} catch (err) {
next(err);
}
Expand All @@ -42,7 +42,7 @@ router.get(
"/api/v1/bl/logics/:id",
(req: Request, res: Response, next: NextFunction) => {
try {
res.send(
res.render(
"Not Implemented (Show Specification of Business Logic" +
", id=" +
escapeHtml(req.params.id) +
Expand All @@ -59,7 +59,7 @@ router.post(
"/api/v1/bl/wallets/",
(req: Request, res: Response, next: NextFunction) => {
try {
res.send("Not Implemented (Register a Wallet)\n");
res.render("Not Implemented (Register a Wallet)\n");
} catch (err) {
next(err);
}
Expand All @@ -71,7 +71,7 @@ router.get(
"/api/v1/bl/wallets/",
(req: Request, res: Response, next: NextFunction) => {
try {
res.send("Not Implemented (Show Wallet List)\n");
res.render("Not Implemented (Show Wallet List)\n");
} catch (err) {
next(err);
}
Expand All @@ -83,7 +83,7 @@ router.put(
"/api/v1/bl/wallets/:id",
(req: Request, res: Response, next: NextFunction) => {
try {
res.send(
res.render(
"Not Implemented (Update Existing Wallets" +
", id=" +
escapeHtml(req.params.id) +
Expand Down

0 comments on commit a5303ed

Please sign in to comment.